Skip to content

Commit

Permalink
Adapt card for none conventional image sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
dtrucs committed Apr 24, 2024
1 parent 4b483c2 commit bd0d2ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/suggestion-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ export default function SuggestionList({
{content.map(item => (
<Card key={item.label} className="group relative">
{item.images?.[0]?.thumbnail && (
<CardMedia>
<CardMedia className="bg-accent">
<Carousel
className="aspect-[4/3] size-auto object-cover transition-all group-hover:scale-105"
className="aspect-[4/3] object-cover transition-all group-hover:scale-105"
images={convertAttachementsToImages(item.images, true)}
width={400}
height={300}
Expand Down

0 comments on commit bd0d2ae

Please sign in to comment.