Skip to content

Commit 1b4d164

Browse files
committed
Adjust info content padding when action button is absent in warning messages
1 parent 4c82ca2 commit 1b4d164

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

‎packages/ui/src/components/editor/panel/ResponsePreview/ResponsePreview.module.scss‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@
3939
transform: translateY(2px);
4040
margin-right: 4px;
4141
}
42+
43+
&--without-button {
44+
padding-right: 7px;
45+
}
4246
}
4347

4448
&__action {

‎packages/ui/src/components/editor/panel/ResponsePreview/ResponsePreview.tsx‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,10 +214,14 @@ export const ResponsePreview: FC<Props> = (props) => {
214214
files_in_preview.length > 1
215215
? `${aggressive_fallback_count} of ${files_in_preview.length} files`
216216
: 'The file'
217-
}{' '}
218-
used aggressive fallback method`}
217+
} used aggressive fallback method`}
219218
>
220-
<div className={styles.info__content}>
219+
<div
220+
className={cn(
221+
styles.info__content,
222+
styles['info__content--without-button']
223+
)}
224+
>
221225
<span className="codicon codicon-warning" />
222226
{files_in_preview.length > 1
223227
? `${aggressive_fallback_count} of ${files_in_preview.length} files used aggressive fallback method`

0 commit comments

Comments
 (0)