From 6c96096968a54d96e378ee6b5656ae3abef3c423 Mon Sep 17 00:00:00 2001 From: sebastjanartic <45803536-sebastjanartic@users.noreply.replit.com> Date: Mon, 1 Sep 2025 15:03:43 +0000 Subject: [PATCH] Improve video grid layout and navigation with track-style arrows Adjusted netflix-grid.tsx: Modified container classes for `CategoryRow` to ensure videos do not overflow horizontally (`max-w-6xl mx-auto` and `px-4`). Changed navigation arrows to a gradient track style positioned at the edges of the container, replacing circular buttons. Updated video card widths for various screen sizes to `w-280px` to `w-340px`. 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/srjpoes --- client/src/components/netflix-grid.tsx | 34 +++++++++----------------- 1 file changed, 12 insertions(+), 22 deletions(-) diff --git a/client/src/components/netflix-grid.tsx b/client/src/components/netflix-grid.tsx index 762f110..8ecf165 100644 --- a/client/src/components/netflix-grid.tsx +++ b/client/src/components/netflix-grid.tsx @@ -242,18 +242,18 @@ function CategoryRow({ category, onVideoClick, hideScrollButtons = false }: Cate

{category.title}

-
+
{/* Scrollable video row - true edge to edge */}
{category.videos.map((video, index) => (
setClickedVideoId(video.id)} > {/* Top 10 Number overlay for first category */} @@ -278,26 +278,16 @@ function CategoryRow({ category, onVideoClick, hideScrollButtons = false }: Cate ))}
- {/* Navigation arrows - left and right */} -
- + {/* Navigation arrows - track style */} +
startAutoScroll('left')} + onMouseLeave={stopAutoScroll}> +
-
- +
startAutoScroll('right')} + onMouseLeave={stopAutoScroll}> +