Improve layout consistency and responsiveness across video display components
Adjusted `netflix-grid.tsx` to standardize video card widths to `280px` and refactored container styling in `CategoryRow` to use `space-y-8`, enhancing visual consistency and responsiveness for a better user experience. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 890577b1-c154-40a4-a177-a0c6d55320c3 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8cc42625-c1f5-4e43-99bd-77f2c4dedee2/890577b1-c154-40a4-a177-a0c6d55320c3/aC8PHqS
This commit is contained in:
parent
93903c49ef
commit
478f5d820f
@ -119,7 +119,7 @@ export default function NetflixGrid({ videos, isLoading }: NetflixGridProps) {
|
||||
<div className="h-6 bg-bunny-gray rounded w-48 animate-pulse"></div>
|
||||
<div className="flex space-x-4 overflow-hidden">
|
||||
{Array.from({ length: 6 }).map((_, index) => (
|
||||
<div key={index} className="flex-shrink-0 w-56 md:w-80 animate-pulse">
|
||||
<div key={index} className="flex-shrink-0 w-[280px] animate-pulse">
|
||||
<div className="bg-bunny-gray aspect-[9/16] md:aspect-[16/9] rounded-xl mb-3"></div>
|
||||
<div className="space-y-2">
|
||||
<div className="h-4 bg-bunny-gray rounded w-3/4"></div>
|
||||
@ -151,7 +151,7 @@ export default function NetflixGrid({ videos, isLoading }: NetflixGridProps) {
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className="container">
|
||||
<div className="space-y-8">
|
||||
{categories.map((category, categoryIndex) => (
|
||||
<div key={categoryIndex} className={`${categoryIndex === 0 ? 'mt-2 mb-1' : 'mb-2'}`}>
|
||||
<CategoryRow
|
||||
@ -278,7 +278,7 @@ function CategoryRow({ category, onVideoClick, hideScrollButtons = false }: Cate
|
||||
{category.videos.map((video, index) => (
|
||||
<div
|
||||
key={video.id}
|
||||
className="flex-shrink-0 w-[280px] sm:w-[320px] md:w-[280px] lg:w-[300px] xl:w-[280px] relative group hover:z-30"
|
||||
className="flex-shrink-0 w-[280px] relative group hover:z-30"
|
||||
onMouseEnter={() => setClickedVideoId(video.id)}
|
||||
>
|
||||
{/* Top 10 Number overlay for first category */}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user