Improve video display and scaling for smoother browsing

Update netflix-grid.tsx to include `overflow-hidden` on the relative div and adjust video scaling on hover for a better user experience.

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/iazasnP
This commit is contained in:
sebastjanartic 2025-08-30 13:25:20 +00:00
parent 0f4a74ef47
commit 412b0221d4

View File

@ -194,7 +194,7 @@ function CategoryRow({ category, onVideoClick }: CategoryRowProps) {
{category.title}
</h2>
<div className="relative">
<div className="relative overflow-hidden">
{/* Left scroll button - only on desktop */}
<Button
onClick={() => scroll('left')}
@ -245,7 +245,7 @@ function CategoryRow({ category, onVideoClick }: CategoryRowProps) {
setClickedVideoId(video.id);
onVideoClick(video);
}}
className="w-full hover:scale-105 md:hover:scale-110 hover:z-50 transition-all duration-300 md:duration-500 group-hover:shadow-2xl rounded-lg overflow-hidden"
className="w-full hover:scale-102 md:hover:scale-105 hover:z-50 transition-all duration-300 md:duration-500 group-hover:shadow-2xl rounded-lg overflow-hidden"
/>
</div>
))}