Adjust spacing and positioning for category titles and scroll buttons
Update `netflix-grid.tsx` to adjust the horizontal padding of category titles and the positioning of left/right scroll buttons, addressing layout issues. 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:
parent
f36cad969a
commit
e3dc289588
@ -239,7 +239,7 @@ function CategoryRow({ category, onVideoClick, hideScrollButtons = false }: Cate
|
|||||||
className="relative group mb-6"
|
className="relative group mb-6"
|
||||||
onMouseLeave={() => setClickedVideoId(null)}
|
onMouseLeave={() => setClickedVideoId(null)}
|
||||||
>
|
>
|
||||||
<h2 className="text-lg font-medium text-bunny-light mb-1 mx-2 leading-tight uppercase pl-[50px] pr-[50px]">
|
<h2 className="text-lg font-medium text-bunny-light mb-1 mx-2 leading-tight uppercase relative z-10 first:mt-8">
|
||||||
{category.title}
|
{category.title}
|
||||||
</h2>
|
</h2>
|
||||||
<div className="relative overflow-visible pt-[25px] pb-[25px]">
|
<div className="relative overflow-visible pt-[25px] pb-[25px]">
|
||||||
@ -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-[60] hidden md:block">
|
<div className="absolute left-[120px] top-1/2 -translate-y-1/2 z-[60] hidden md:block">
|
||||||
<Button
|
<Button
|
||||||
onClick={() => scroll('left')}
|
onClick={() => scroll('left')}
|
||||||
className="gap-2 whitespace-nowrap text-sm font-medium ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 px-3 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 ml-[160px] mr-[160px]"
|
className="gap-2 whitespace-nowrap text-sm font-medium ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 px-3 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 ml-[160px] mr-[160px]"
|
||||||
@ -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-[60] hidden md:block">
|
<div className="absolute right-[120px] 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"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user