Skip to content

Commit

Permalink
fix width in banner
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelfact committed Aug 9, 2024
1 parent f4dc936 commit 46f8abd
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions shared/features/navigation/primary-banner/primary-banner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,20 @@ export function PrimaryBanner({ isFolded }: PrimaryBannerProps) {
}

if (isFolded || !bannerData || !bannerData.text || isError) {
return null;
return <div className="flex-1" />;
}

return (
<div className="flex-1">
<PlgBanner
title={"title"}
subTitle={"subtitle"}
date={"10.06.2024"}
description={bannerData.text}
cta={getCta()}
/>
<div className="flex flex-1 overflow-hidden">
<div className="h-full w-[260px] min-w-[260px]">
<PlgBanner
title={"title"}
subTitle={"subtitle"}
date={"10.06.2024"}
description={bannerData.text}
cta={getCta()}
/>
</div>
</div>
);
}

0 comments on commit 46f8abd

Please sign in to comment.