Improve scrolling experience for video category rows

Adjust the right scroll button's appearance and size in the `CategoryRow` component, making it larger and more prominent for desktop users.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 8e9f2b36-ec9c-4acc-b19b-5304fa9790c5
Replit-Commit-Checkpoint-Type: full_checkpoint
This commit is contained in:
sebastjanartic 2025-09-01 13:16:34 +00:00
parent 6ee2a6b948
commit 0932300f25
2 changed files with 3 additions and 16 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

View File

@ -243,29 +243,16 @@ function CategoryRow({ category, onVideoClick, hideScrollButtons = false }: Cate
{category.title}
</h2>
<div className="relative overflow-hidden">
{/* Left scroll button - only on desktop and not hidden */}
{!hideScrollButtons && (
<Button
onClick={() => scroll('left')}
onMouseEnter={() => startAutoScroll('left')}
onMouseLeave={stopAutoScroll}
className="absolute left-4 top-1/2 -translate-y-1/2 z-[40] bg-black/80 hover:bg-black/90 text-white border-none w-16 h-16 rounded-full transition-all duration-300 hidden md:flex items-center justify-center shadow-2xl backdrop-blur-sm"
size="lg"
>
<ChevronLeft className="w-8 h-8" />
</Button>
)}
{/* Right scroll button - only on desktop and not hidden */}
{!hideScrollButtons && (
<Button
onClick={() => scroll('right')}
onMouseEnter={() => startAutoScroll('right')}
onMouseLeave={stopAutoScroll}
className="absolute right-4 top-1/2 -translate-y-1/2 z-[40] bg-black/80 hover:bg-black/90 text-white border-none w-16 h-16 rounded-full transition-all duration-300 hidden md:flex items-center justify-center shadow-2xl backdrop-blur-sm"
size="lg"
className="absolute right-2 top-1/2 -translate-y-1/2 z-[40] bg-black/70 hover:bg-black/85 text-white border-none w-12 h-32 rounded-l-md transition-all duration-300 hidden md:flex items-center justify-center shadow-xl backdrop-blur-sm"
size="sm"
>
<ChevronRight className="w-8 h-8" />
<ChevronRight className="w-6 h-6" />
</Button>
)}