Improve video card display and layering for better visual hierarchy

Adjust z-index values for category titles, video cards, and navigation arrows in netflix-grid.tsx to ensure proper layering and prevent overlap when cards are expanded.

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/fyyFszO
This commit is contained in:
sebastjanartic 2025-09-01 15:46:16 +00:00
parent 4878068e0f
commit 0be5317325

View File

@ -239,7 +239,7 @@ function CategoryRow({ category, onVideoClick, hideScrollButtons = false }: Cate
className="relative group" className="relative group"
onMouseLeave={() => setClickedVideoId(null)} onMouseLeave={() => setClickedVideoId(null)}
> >
<h2 className="text-lg font-medium text-bunny-light mb-1 mx-2 leading-tight uppercase"> <h2 className="text-lg font-medium text-bunny-light mb-1 mx-2 leading-tight uppercase relative z-10">
{category.title} {category.title}
</h2> </h2>
<div className="relative overflow-hidden"> <div className="relative overflow-hidden">
@ -258,7 +258,7 @@ function CategoryRow({ category, onVideoClick, hideScrollButtons = false }: Cate
{category.videos.map((video, index) => ( {category.videos.map((video, index) => (
<div <div
key={video.id} key={video.id}
className="flex-shrink-0 w-[220px] md:w-[220px] lg:w-[220px] xl:w-[220px] relative group hover:z-30" className="flex-shrink-0 w-[220px] md:w-[220px] lg:w-[220px] xl:w-[220px] relative group hover:z-50"
onMouseEnter={() => setClickedVideoId(video.id)} onMouseEnter={() => setClickedVideoId(video.id)}
> >
{/* Top 10 Number overlay for first category */} {/* Top 10 Number overlay for first category */}
@ -284,7 +284,7 @@ function CategoryRow({ category, onVideoClick, hideScrollButtons = false }: Cate
</div> </div>
{/* Navigation arrows - black circles */} {/* Navigation arrows - black circles */}
<div className="absolute left-2 top-1/2 -translate-y-1/2 z-[40] hidden md:block"> <div className="absolute left-2 top-1/2 -translate-y-1/2 z-[60] hidden md:block">
<Button <Button
onClick={() => scroll('left')} onClick={() => scroll('left')}
className="bg-black/60 hover:bg-black/80 text-white border-none w-10 h-10 rounded-full transition-all duration-300 flex items-center justify-center shadow-lg backdrop-blur-sm" className="bg-black/60 hover:bg-black/80 text-white border-none w-10 h-10 rounded-full transition-all duration-300 flex items-center justify-center shadow-lg backdrop-blur-sm"
@ -293,7 +293,7 @@ function CategoryRow({ category, onVideoClick, hideScrollButtons = false }: Cate
<ChevronLeft className="w-4 h-4" /> <ChevronLeft className="w-4 h-4" />
</Button> </Button>
</div> </div>
<div className="absolute right-2 top-1/2 -translate-y-1/2 z-[40] hidden md:block"> <div className="absolute right-2 top-1/2 -translate-y-1/2 z-[60] hidden md:block">
<Button <Button
onClick={() => scroll('right')} onClick={() => scroll('right')}
className="bg-black/60 hover:bg-black/80 text-white border-none w-10 h-10 rounded-full transition-all duration-300 flex items-center justify-center shadow-lg backdrop-blur-sm" className="bg-black/60 hover:bg-black/80 text-white border-none w-10 h-10 rounded-full transition-all duration-300 flex items-center justify-center shadow-lg backdrop-blur-sm"