diff --git a/client/src/components/netflix-grid.tsx b/client/src/components/netflix-grid.tsx index fbfe47c..e98261e 100644 --- a/client/src/components/netflix-grid.tsx +++ b/client/src/components/netflix-grid.tsx @@ -188,8 +188,8 @@ function CategoryRow({ category, onVideoClick, hideScrollButtons = false }: Cate const scroll = (direction: 'left' | 'right') => { if (scrollRef.current) { - // Scroll exactly 4 cards (240px + 16px gap = 256px per card) - const cardWidth = 240 + 16; // card width + gap + // Scroll exactly 4 cards (220px + 16px gap = 236px per card) + const cardWidth = 220 + 16; // card width + gap const scrollAmount = cardWidth * 4; // 4 cards at once const currentScroll = scrollRef.current.scrollLeft; @@ -249,7 +249,7 @@ function CategoryRow({ category, onVideoClick, hideScrollButtons = false }: Cate ref={scrollRef} className="flex gap-4 overflow-x-auto scrollbar-hide pb-0 pl-4 pr-4" style={{ - maxWidth: '980px', + maxWidth: '920px', margin: '0 auto', scrollbarWidth: 'none', msOverflowStyle: 'none' @@ -258,7 +258,7 @@ function CategoryRow({ category, onVideoClick, hideScrollButtons = false }: Cate {category.videos.map((video, index) => (