From 904e743921ec35e6e8a43af4b89f74ca2a26bac1 Mon Sep 17 00:00:00 2001 From: James Grugett Date: Wed, 7 Sep 2022 22:35:18 -0500 Subject: [PATCH] Snap scrolling for carousel --- web/components/carousel.tsx | 2 +- web/components/double-carousel.tsx | 2 +- web/pages/tournaments/index.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/web/components/carousel.tsx b/web/components/carousel.tsx index 79baa451..030c256c 100644 --- a/web/components/carousel.tsx +++ b/web/components/carousel.tsx @@ -38,7 +38,7 @@ export function Carousel(props: { return (
diff --git a/web/components/double-carousel.tsx b/web/components/double-carousel.tsx index da01eb5a..a3d3759c 100644 --- a/web/components/double-carousel.tsx +++ b/web/components/double-carousel.tsx @@ -19,7 +19,7 @@ export function DoubleCarousel(props: { ? range(0, Math.floor(contracts.length / 2)).map((col) => { const i = col * 2 return ( - + { key={m.id} contract={m} hideGroupLink - className="mb-2 max-h-[200px] w-96 shrink-0" + className="mb-2 max-h-[200px] w-96 shrink-0 snap-start scroll-m-4 md:snap-align-none" questionClass="line-clamp-3" trackingPostfix=" tournament" />