diff --git a/client/src/components/netflix-grid.tsx b/client/src/components/netflix-grid.tsx index d1e3631..6fc3858 100644 --- a/client/src/components/netflix-grid.tsx +++ b/client/src/components/netflix-grid.tsx @@ -136,9 +136,9 @@ function CategoryRow({ category, onVideoClick }: CategoryRowProps) { const scroll = (direction: 'left' | 'right') => { if (scrollRef.current) { - // Responsive scroll amount - wider cards on desktop + // Responsive scroll amount - smaller cards for Netflix style const isMobile = window.innerWidth < 768; - const scrollAmount = isMobile ? 240 : 336; // Mobile: 224px + gap, Desktop: 320px + gap + const scrollAmount = isMobile ? 180 : 280; // Mobile: 176px + gap, Desktop: 256px + gap const currentScroll = scrollRef.current.scrollLeft; const targetScroll = direction === 'left' ? currentScroll - scrollAmount @@ -179,14 +179,14 @@ function CategoryRow({ category, onVideoClick }: CategoryRowProps) { {/* Scrollable video row */}
{category.videos.map((video, index) => ( -
+
{/* Top 10 Number overlay for first category */} {category.title.includes("Top 10") && index < 10 && ( -
))} diff --git a/client/src/components/video-card.tsx b/client/src/components/video-card.tsx index a2788c7..0070d72 100644 --- a/client/src/components/video-card.tsx +++ b/client/src/components/video-card.tsx @@ -127,13 +127,13 @@ export default function VideoCard({ video, onClick, className = "" }: VideoCardP return (
setIsHovered(true)} onMouseLeave={() => setIsHovered(false)} > {/* Video preview container */}
onClick?.(video)} > {/* Static thumbnail - always visible */}