Skip to content

Commit

Permalink
🚑fix: carousel image aspect ratio (#976)
Browse files Browse the repository at this point in the history
  • Loading branch information
Marukome0743 authored Sep 20, 2024
1 parent 45ab233 commit 0e97e49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/carousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ export function IndicatorCarousel(): JSX.Element {
</div>
<div
ref={carouselRef}
className="aspect-square carousel flex overflow-x-scroll rounded-2xl scroll-smooth shadow-lg snap-mandatory snap-x w-full"
className="aspect-square flex overflow-x-scroll rounded-2xl scroll-smooth shadow-lg snap-mandatory snap-x w-full"
onMouseEnter={() => setIsBusy(true)}
onMouseLeave={() => setIsBusy(false)}
onTouchStart={() => setIsBusy(true)}
Expand All @@ -351,7 +351,7 @@ export function IndicatorCarousel(): JSX.Element {
width={256}
height={256}
alt={picture.alt}
className="aspect-square carousel-item snap-start w-full"
className="flex-none snap-start w-full"
/>
))}
</div>
Expand Down

0 comments on commit 0e97e49

Please sign in to comment.