From 6abaaca81d19a850459e40d735d28f4e48a62547 Mon Sep 17 00:00:00 2001 From: sebastjanartic <45803536-sebastjanartic@users.noreply.replit.com> Date: Mon, 1 Sep 2025 15:29:44 +0000 Subject: [PATCH] Adjust video grid spacing for better visual alignment Update the scroll amount in the Netflix grid component to scroll by 4 cards with adjusted card width (240px + 12px gap), improving visual alignment. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 8e9f2b36-ec9c-4acc-b19b-5304fa9790c5 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8cc42625-c1f5-4e43-99bd-77f2c4dedee2/8e9f2b36-ec9c-4acc-b19b-5304fa9790c5/fyyFszO --- client/src/components/netflix-grid.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/components/netflix-grid.tsx b/client/src/components/netflix-grid.tsx index d99b7d1..7ef4bc5 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 (300px + 12px gap = 312px per card) - const cardWidth = 300 + 12; // card width + gap + // Scroll exactly 4 cards (240px + 12px gap = 252px per card) + const cardWidth = 240 + 12; // card width + gap const scrollAmount = cardWidth * 4; // 4 cards at once const currentScroll = scrollRef.current.scrollLeft;