Skip to content

Commit

Permalink
chore(SLB-455): try aspect-ratio 16 by 9 for images on cards
Browse files Browse the repository at this point in the history
  • Loading branch information
dan2k3k4 committed Oct 24, 2024
1 parent cf07be3 commit f70c966
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/ui/src/components/Organisms/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ export const CardItem = ({
</div>
<div className="row-start-1">
{teaserImage ? (
<Image {...teaserImage} className="w-full rounded-t-lg" />
<Image {...teaserImage} className="w-full aspect-[16/9] rounded-t-lg" />
) : (
<div className="aspect-[4/3] bg-indigo-200" />
<div className="aspect-[16/9] rounded-t-lg bg-indigo-200" />
)}
</div>
</article>
Expand Down

0 comments on commit f70c966

Please sign in to comment.