Improve grid layout and navigation for better video browsing

Adjusted margins and padding in `netflix-grid.tsx` to enhance visual spacing and repositioned scroll buttons for improved accessibility and usability.

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/xF0EUqR
This commit is contained in:
sebastjanartic 2025-08-29 09:14:08 +00:00
parent ca51a8b40d
commit e8358e8209

View File

@ -152,16 +152,16 @@ function CategoryRow({ category, onVideoClick }: CategoryRowProps) {
};
return (
<div className="relative group">
<div className="relative group mb-8">
<h2 className="text-2xl font-bold text-bunny-light mb-6 px-4">
{category.title}
</h2>
<div className="relative">
<div className="relative px-16">
{/* Left scroll button */}
<Button
onClick={() => scroll('left')}
className="absolute -left-6 top-1/2 -translate-y-1/2 z-20 bg-black/80 hover:bg-black/95 text-white border-none w-12 h-12 rounded-full opacity-0 group-hover:opacity-100 transition-all duration-300 flex items-center justify-center shadow-xl"
className="absolute -left-2 top-1/2 -translate-y-1/2 z-30 bg-black/80 hover:bg-black/95 text-white border-none w-12 h-12 rounded-full opacity-0 group-hover:opacity-100 transition-all duration-300 flex items-center justify-center shadow-xl"
size="sm"
>
<ChevronLeft className="w-5 h-5" />
@ -170,7 +170,7 @@ function CategoryRow({ category, onVideoClick }: CategoryRowProps) {
{/* Right scroll button */}
<Button
onClick={() => scroll('right')}
className="absolute -right-6 top-1/2 -translate-y-1/2 z-20 bg-black/80 hover:bg-black/95 text-white border-none w-12 h-12 rounded-full opacity-0 group-hover:opacity-100 transition-all duration-300 flex items-center justify-center shadow-xl"
className="absolute -right-2 top-1/2 -translate-y-1/2 z-30 bg-black/80 hover:bg-black/95 text-white border-none w-12 h-12 rounded-full opacity-0 group-hover:opacity-100 transition-all duration-300 flex items-center justify-center shadow-xl"
size="sm"
>
<ChevronRight className="w-5 h-5" />
@ -179,7 +179,7 @@ function CategoryRow({ category, onVideoClick }: CategoryRowProps) {
{/* Scrollable video row */}
<div
ref={scrollRef}
className="flex space-x-4 overflow-x-auto scrollbar-hide pb-4 px-4"
className="flex space-x-4 overflow-x-auto scrollbar-hide pb-4"
style={{ scrollbarWidth: 'none', msOverflowStyle: 'none' }}
>
{category.videos.map((video, index) => (