diff --git a/client/src/components/netflix-grid.tsx b/client/src/components/netflix-grid.tsx index 2e5839d..49b0e63 100644 --- a/client/src/components/netflix-grid.tsx +++ b/client/src/components/netflix-grid.tsx @@ -188,9 +188,9 @@ function CategoryRow({ category, onVideoClick, hideScrollButtons = false }: Cate const scroll = (direction: 'left' | 'right') => { if (scrollRef.current) { - // Viewport-based scroll amount for full-width cards - const containerWidth = scrollRef.current.clientWidth; - const scrollAmount = containerWidth * 0.8; // Scroll 80% of visible area + // Scroll exactly 4 cards at a time (300px per card + 12px gap = 312px per card) + const cardWidth = 300 + 12; // card width + gap + const scrollAmount = cardWidth * 4; // 4 cards at once const currentScroll = scrollRef.current.scrollLeft; const targetScroll = direction === 'left' @@ -278,7 +278,18 @@ function CategoryRow({ category, onVideoClick, hideScrollButtons = false }: Cate ))} - {/* Navigation arrow at the end of each row - small square with arrow */} + {/* Navigation arrows - left and right */} +
+ +