Skip to content

Commit

Permalink
fix: fix Carousel styles
Browse files Browse the repository at this point in the history
  • Loading branch information
bacali95 committed May 7, 2022
1 parent 21359b0 commit 78060ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/components/Carousel/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export const Carousel: FC<CarouselProps> = ({
const handleDragging = (dragging: boolean) => () => setIsDragging(dragging);

return (
<div className="relative" data-testid="carousel">
<div className="relative w-full" data-testid="carousel">
<ScrollContainer
className={classNames(
'flex h-56 snap-mandatory overflow-y-hidden overflow-x-scroll scroll-smooth rounded-lg sm:h-64 xl:h-80 2xl:h-96',
Expand All @@ -93,7 +93,7 @@ export const Carousel: FC<CarouselProps> = ({
{items?.map((item, index) => (
<div
key={index}
className="w-full flex-shrink-0 transform snap-center"
className="w-full flex-shrink-0 transform cursor-grab snap-center"
data-active={activeItem === index}
data-testid="carousel-item"
>
Expand Down

0 comments on commit 78060ea

Please sign in to comment.