Adjust video display proportions for better visual appeal
Update video card width in NetflixGrid and adjust container max-width in index.css to improve layout proportions. 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/iQc0AVS
This commit is contained in:
parent
040ea52a25
commit
823006bbaf
@ -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-[240px] animate-pulse">
|
||||
<div key={index} className="flex-shrink-0 w-[220px] 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>
|
||||
@ -272,13 +272,13 @@ function CategoryRow({ category, onVideoClick, hideScrollButtons = false }: Cate
|
||||
{/* Scrollable video row - true edge to edge */}
|
||||
<div
|
||||
ref={scrollRef}
|
||||
className="flex gap-3 overflow-x-auto scrollbar-hide pb-0 -mx-1"
|
||||
className="flex gap-3 overflow-x-auto scrollbar-hide pb-0 px-2"
|
||||
style={{ scrollbarWidth: 'none', msOverflowStyle: 'none' }}
|
||||
>
|
||||
{category.videos.map((video, index) => (
|
||||
<div
|
||||
key={video.id}
|
||||
className="flex-shrink-0 w-[240px] relative group hover:z-30"
|
||||
className="flex-shrink-0 w-[220px] relative group hover:z-30"
|
||||
onMouseEnter={() => setClickedVideoId(video.id)}
|
||||
>
|
||||
{/* Top 10 Number overlay for first category */}
|
||||
|
||||
@ -372,7 +372,7 @@ input[data-testid*="search"]::placeholder {
|
||||
|
||||
/* Container for main content layout */
|
||||
.container {
|
||||
max-width: 1400px; /* največja širina */
|
||||
max-width: 1200px; /* manjša širina za boljše proporcije */
|
||||
margin: 0 auto; /* centriranje */
|
||||
padding: 0 20px; /* malo notranjega roba */
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user