Add navigation arrows to all video rows for easier browsing

Update client/src/components/netflix-grid.tsx to ensure navigation arrows are always visible on video rows, removing conditional rendering based on hideScrollButtons prop.

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/0CzYEcy
This commit is contained in:
sebastjanartic 2025-09-01 13:30:56 +00:00
parent c0f16f92e4
commit 52b2846821

View File

@ -279,19 +279,17 @@ function CategoryRow({ category, onVideoClick, hideScrollButtons = false }: Cate
</div>
{/* Navigation arrow at the end of each row - small square with arrow */}
{!hideScrollButtons && (
<div className="absolute right-2 top-1/2 -translate-y-1/2 z-[40] hidden md:block">
<Button
onClick={() => scroll('right')}
onMouseEnter={() => startAutoScroll('right')}
onMouseLeave={stopAutoScroll}
className="bg-black/60 hover:bg-black/80 text-white border-none w-10 h-16 rounded transition-all duration-300 flex items-center justify-center shadow-lg backdrop-blur-sm"
size="sm"
>
<ChevronRight className="w-4 h-4" />
</Button>
</div>
)}
<div className="absolute right-2 top-1/2 -translate-y-1/2 z-[40] block bg-red-500 p-2">
<Button
onClick={() => scroll('right')}
onMouseEnter={() => startAutoScroll('right')}
onMouseLeave={stopAutoScroll}
className="bg-black/60 hover:bg-black/80 text-white border-none w-10 h-16 rounded transition-all duration-300 flex items-center justify-center shadow-lg backdrop-blur-sm"
size="sm"
>
<ChevronRight className="w-4 h-4" />
</Button>
</div>
</div>
</div>
);