Skip to content

Commit

Permalink
Fix carousel mobile sizing
Browse files Browse the repository at this point in the history
  • Loading branch information
etaoxing committed Feb 23, 2025
1 parent f2fbcc4 commit 264d296
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/carousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const Carousel = ({ images, autoSlideInterval = 5000 }) => {
onTouchStart={handleTouchStart}
>
<div className="overflow-hidden rounded-lg shadow-lg relative">
<div className="relative h-[72vh]">
<div className="relative h-[20rem] sm:h-[20rem] md:h-[28rem] lg:h-[36rem]">
{images.map((image, index) => (
<Transition
key={index}
Expand All @@ -86,7 +86,7 @@ const Carousel = ({ images, autoSlideInterval = 5000 }) => {
leaveFrom="opacity-100"
leaveTo="opacity-0"
as="div"
className="absolute inset-0 w-full h-full flex items-center justify-center"
className="absolute inset-0 w-full h-full flex justify-center"
>
<img
src={image.src}
Expand Down

0 comments on commit 264d296

Please sign in to comment.