Skip to content

Commit c097eba

Browse files
committed
fix: banner size
1 parent 5dfdd19 commit c097eba

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

src/components/ControlPlanes/List/ControlPlaneListWorkspaceGridTile.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ export function ControlPlaneListWorkspaceGridTile({ projectName, workspace }: Pr
5858
<IllustratedError
5959
title={t('ControlPlaneListWorkspaceGridTile.permissionErrorMessage')}
6060
details={t('ControlPlaneListWorkspaceGridTile.permissionErrorMessageSubtitle')}
61+
compact = {true}
6162
/>
6263
);
6364
} else {

src/components/Shared/IllustratedError.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,18 @@ import IllustrationMessageType from '@ui5/webcomponents-fiori/dist/types/Illustr
66
interface Props {
77
title?: string;
88
details?: string;
9+
compact?: boolean;
910
}
1011

11-
export default function IllustratedError({ title, details }: Props) {
12+
export default function IllustratedError({ title, details, compact }: Props) {
1213
const { t } = useTranslation();
1314

1415
return (
1516
<IllustratedBanner
1617
illustrationName={IllustrationMessageType.SimpleError}
1718
title={title ?? t('IllustratedError.titleText')}
1819
subtitle={details ?? t('IllustratedError.subtitleText')}
20+
compact = {compact}
1921
/>
2022
);
2123
}

src/components/Ui/IllustratedBanner/IllustratedBanner.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export const IllustratedBanner = ({
3636
return (
3737
<FlexBox direction="Column" alignItems="Center">
3838
<IllustratedMessage
39-
design={compact ? IllustrationMessageDesign.ExtraSmall : IllustrationMessageDesign.Large}
39+
design={compact ? IllustrationMessageDesign.Small : IllustrationMessageDesign.Large}
4040
name={illustrationName}
4141
titleText={title}
4242
subtitleText={subtitleText}

0 commit comments

Comments
 (0)