From 645ac197762a079085c736c9bf5f7bd2fd8e074b Mon Sep 17 00:00:00 2001 From: sebastjanartic <45803536-sebastjanartic@users.noreply.replit.com> Date: Fri, 29 Aug 2025 10:25:28 +0000 Subject: [PATCH] Improve video display by unifying mobile and desktop layouts Unify mobile and desktop layouts in `netflix-grid.tsx` by removing conditional rendering for different screen sizes and applying responsive styling directly. 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 | 96 ++++++++------------------ 1 file changed, 30 insertions(+), 66 deletions(-) diff --git a/client/src/components/netflix-grid.tsx b/client/src/components/netflix-grid.tsx index 48156f4..a4744a7 100644 --- a/client/src/components/netflix-grid.tsx +++ b/client/src/components/netflix-grid.tsx @@ -182,72 +182,36 @@ function CategoryRow({ category, onVideoClick }: CategoryRowProps) {
scroll('left')} />
scroll('right')} /> - {/* Mobile: Single scrollable row */} -
-
- {category.videos.map((video, index) => ( -
- {/* Top 10 Number overlay for first category */} - {category.title.includes("Top 10") && index < 10 && ( -
- {index + 1} -
- )} - -
- ))} -
-
- - {/* Desktop: Two rows grid */} -
-
- {category.videos.map((video, index) => ( -
- {/* Top 10 Number overlay for first category */} - {category.title.includes("Top 10") && index < 10 && ( -
- {index + 1} -
- )} - -
- ))} -
+ {/* Scrollable video row */} +
+ {category.videos.map((video, index) => ( +
+ {/* Top 10 Number overlay for first category */} + {category.title.includes("Top 10") && index < 10 && ( +
+ {index + 1} +
+ )} + +
+ ))}