Skip to content

Commit 188f57c

Browse files
author
dphuang2
committed
hide left/right buttons on mobile
1 parent 343f9fc commit 188f57c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/ui/carousel.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ const CarouselPrevious = React.forwardRef<
243243
variant={variant}
244244
size={size}
245245
className={cn(
246-
"absolute h-8 w-8 rounded-full",
246+
"absolute h-8 w-8 rounded-full hidden md:inline-flex",
247247
orientation === "horizontal"
248248
? "-left-12 top-1/2 -translate-y-1/2"
249249
: "-top-12 left-1/2 -translate-x-1/2 rotate-90",
@@ -272,7 +272,7 @@ const CarouselNext = React.forwardRef<
272272
variant={variant}
273273
size={size}
274274
className={cn(
275-
"absolute h-8 w-8 rounded-full",
275+
"absolute h-8 w-8 rounded-full hidden md:inline-flex",
276276
orientation === "horizontal"
277277
? "-right-12 top-1/2 -translate-y-1/2"
278278
: "-bottom-12 left-1/2 -translate-x-1/2 rotate-90",

0 commit comments

Comments
 (0)