From a72037b42359f88ded79e8763b4a84ef28c17cb7 Mon Sep 17 00:00:00 2001 From: sebastjanartic <45803536-sebastjanartic@users.noreply.replit.com> Date: Fri, 29 Aug 2025 10:15:20 +0000 Subject: [PATCH] Adjust video display to resemble Netflix layout Update `netflix-grid.tsx` and `video-card.tsx` to adjust spacing, card widths, and hover effects, mimicking the visual style of Netflix for a more familiar user experience. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 2eb1084e-b728-4449-9231-f1665924c8d5 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8cc42625-c1f5-4e43-99bd-77f2c4dedee2/2eb1084e-b728-4449-9231-f1665924c8d5/P3O2FU7 --- client/src/components/netflix-grid.tsx | 12 ++++++------ client/src/components/video-card.tsx | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/client/src/components/netflix-grid.tsx b/client/src/components/netflix-grid.tsx index d1e3631..6fc3858 100644 --- a/client/src/components/netflix-grid.tsx +++ b/client/src/components/netflix-grid.tsx @@ -136,9 +136,9 @@ function CategoryRow({ category, onVideoClick }: CategoryRowProps) { const scroll = (direction: 'left' | 'right') => { if (scrollRef.current) { - // Responsive scroll amount - wider cards on desktop + // Responsive scroll amount - smaller cards for Netflix style const isMobile = window.innerWidth < 768; - const scrollAmount = isMobile ? 240 : 336; // Mobile: 224px + gap, Desktop: 320px + gap + const scrollAmount = isMobile ? 180 : 280; // Mobile: 176px + gap, Desktop: 256px + gap const currentScroll = scrollRef.current.scrollLeft; const targetScroll = direction === 'left' ? currentScroll - scrollAmount @@ -179,14 +179,14 @@ function CategoryRow({ category, onVideoClick }: CategoryRowProps) { {/* Scrollable video row */}