Improve video grid layout for better content visibility

Update the `CategoryRow` component in `netflix-grid.tsx` to adjust the maximum width and centering of the video grid, and modify the width of individual video items for improved display.

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/7xJ1fA0
This commit is contained in:
sebastjanartic 2025-09-01 15:06:55 +00:00
parent 548098feaa
commit 31ea54c1d5

View File

@ -247,13 +247,13 @@ function CategoryRow({ category, onVideoClick, hideScrollButtons = false }: Cate
{/* Scrollable video row - true edge to edge */}
<div
ref={scrollRef}
className="flex gap-3 overflow-x-auto scrollbar-hide pb-0 pl-4 pr-4 max-w-5xl mx-auto"
style={{ scrollbarWidth: 'none', msOverflowStyle: 'none' }}
className="flex gap-3 overflow-x-auto scrollbar-hide pb-0 pl-4 pr-4"
style={{ maxWidth: '1200px', margin: '0 auto', scrollbarWidth: 'none', msOverflowStyle: 'none' }}
>
{category.videos.map((video, index) => (
<div
key={video.id}
className="flex-shrink-0 w-[280px] md:w-[300px] lg:w-[320px] xl:w-[340px] relative group hover:z-30"
className="flex-shrink-0 w-[250px] md:w-[270px] lg:w-[290px] xl:w-[310px] relative group hover:z-30"
onMouseEnter={() => setClickedVideoId(video.id)}
>
{/* Top 10 Number overlay for first category */}