Skip to content

Commit

Permalink
fix: make carousel slides scrollable (marimo-team#1874)
Browse files Browse the repository at this point in the history
* fix: make carousel slides scrollable

* fixes
  • Loading branch information
mscolnick authored Jul 24, 2024
1 parent 2ddd464 commit 79c3a55
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions frontend/src/components/slides/slides-component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,12 @@ const SlidesComponent = ({
}
}}
className={cn(
"h-full w-full flex items-center justify-center box-border overflow-hidden",
"h-full w-full flex box-border overflow-y-auto overflow-x-hidden",
isFullscreen ? "p-20" : "p-6",
)}
>
{child}
{/* this centers the contents */}
<div className="m-auto">{child}</div>
</div>
</SwiperSlide>
);
Expand Down

0 comments on commit 79c3a55

Please sign in to comment.