Make navigation arrows partially transparent for a cleaner look

Update netflix-grid.tsx to change the background class for left and right chevron buttons, making them semi-transparent (bg-black/50) instead of fully opaque (bg-black).

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 074b0e4c-6171-43bd-aa98-f9e04623ca14
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8cc42625-c1f5-4e43-99bd-77f2c4dedee2/074b0e4c-6171-43bd-aa98-f9e04623ca14/DVZN4Rp
This commit is contained in:
sebastjanartic 2025-08-30 14:17:07 +00:00
parent fec2e45e48
commit fbaec69744

View File

@ -139,7 +139,6 @@ function CategoryRow({ category, onVideoClick }: CategoryRowProps) {
const [clickedVideoId, setClickedVideoId] = useState<string | null>(null); const [clickedVideoId, setClickedVideoId] = useState<string | null>(null);
const scroll = (direction: 'left' | 'right') => { const scroll = (direction: 'left' | 'right') => {
console.log('Scroll clicked:', direction);
if (scrollRef.current) { if (scrollRef.current) {
// Viewport-based scroll amount for full-width cards // Viewport-based scroll amount for full-width cards
const containerWidth = scrollRef.current.clientWidth; const containerWidth = scrollRef.current.clientWidth;
@ -150,7 +149,6 @@ function CategoryRow({ category, onVideoClick }: CategoryRowProps) {
? currentScroll - scrollAmount ? currentScroll - scrollAmount
: currentScroll + scrollAmount; : currentScroll + scrollAmount;
console.log('Scrolling from', currentScroll, 'to', targetScroll);
scrollRef.current.scrollTo({ scrollRef.current.scrollTo({
left: targetScroll, left: targetScroll,
behavior: 'smooth' behavior: 'smooth'
@ -202,7 +200,7 @@ function CategoryRow({ category, onVideoClick }: CategoryRowProps) {
onClick={() => scroll('left')} onClick={() => scroll('left')}
onMouseEnter={() => startAutoScroll('left')} onMouseEnter={() => startAutoScroll('left')}
onMouseLeave={stopAutoScroll} onMouseLeave={stopAutoScroll}
className="absolute left-2 top-1/2 -translate-y-1/2 z-[60] bg-black hover:bg-black/80 text-white border-none w-12 h-12 rounded-full transition-all duration-300 flex items-center justify-center shadow-xl hidden md:flex" className="absolute left-2 top-1/2 -translate-y-1/2 z-[60] bg-black/50 hover:bg-black/70 text-white border-none w-12 h-12 rounded-full transition-all duration-300 flex items-center justify-center shadow-xl hidden md:flex"
size="sm" size="sm"
> >
<ChevronLeft className="w-5 h-5" /> <ChevronLeft className="w-5 h-5" />
@ -213,7 +211,7 @@ function CategoryRow({ category, onVideoClick }: CategoryRowProps) {
onClick={() => scroll('right')} onClick={() => scroll('right')}
onMouseEnter={() => startAutoScroll('right')} onMouseEnter={() => startAutoScroll('right')}
onMouseLeave={stopAutoScroll} onMouseLeave={stopAutoScroll}
className="absolute right-2 top-1/2 -translate-y-1/2 z-[60] bg-black hover:bg-black/80 text-white border-none w-12 h-12 rounded-full transition-all duration-300 flex items-center justify-center shadow-xl hidden md:flex" className="absolute right-2 top-1/2 -translate-y-1/2 z-[60] bg-black/50 hover:bg-black/70 text-white border-none w-12 h-12 rounded-full transition-all duration-300 flex items-center justify-center shadow-xl hidden md:flex"
size="sm" size="sm"
> >
<ChevronRight className="w-5 h-5" /> <ChevronRight className="w-5 h-5" />