Improve video grid layout and spacing for better viewing
Adjust max-width of category rows and individual video card widths within the Netflix grid component to accommodate more content per row. Update home page header padding for consistency. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 8e9f2b36-ec9c-4acc-b19b-5304fa9790c5 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8cc42625-c1f5-4e43-99bd-77f2c4dedee2/8e9f2b36-ec9c-4acc-b19b-5304fa9790c5/fyyFszO
This commit is contained in:
parent
3ee9e183c5
commit
dc62c6ccb1
BIN
attached_assets/image_1756740118247.png
Normal file
BIN
attached_assets/image_1756740118247.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1010 KiB |
@ -249,7 +249,7 @@ function CategoryRow({ category, onVideoClick, hideScrollButtons = false }: Cate
|
||||
ref={scrollRef}
|
||||
className="flex gap-3 overflow-x-auto scrollbar-hide pb-0 pl-4 pr-4"
|
||||
style={{
|
||||
maxWidth: '900px',
|
||||
maxWidth: '1200px',
|
||||
margin: '0 auto',
|
||||
scrollbarWidth: 'none',
|
||||
msOverflowStyle: 'none'
|
||||
@ -258,7 +258,7 @@ function CategoryRow({ category, onVideoClick, hideScrollButtons = false }: Cate
|
||||
{category.videos.map((video, index) => (
|
||||
<div
|
||||
key={video.id}
|
||||
className="flex-shrink-0 w-[250px] md:w-[270px] lg:w-[290px] xl:w-[310px] relative group hover:z-30"
|
||||
className="flex-shrink-0 w-[280px] md:w-[280px] lg:w-[280px] xl:w-[280px] relative group hover:z-30"
|
||||
onMouseEnter={() => setClickedVideoId(video.id)}
|
||||
>
|
||||
{/* Top 10 Number overlay for first category */}
|
||||
|
||||
@ -77,7 +77,7 @@ export default function Home() {
|
||||
<div className="has-fixed-header" style={{minHeight: '100vh', background: 'linear-gradient(135deg, hsl(250, 50%, 15%) 0%, hsl(240, 30%, 25%) 100%)', color: 'white'}}>
|
||||
{/* STICKY HEADER */}
|
||||
<div className="header-sticky bg-transparent overflow-hidden">
|
||||
<div className="pl-4 pr-16 py-4">
|
||||
<div className="max-w-[1200px] mx-auto pl-4 pr-4 py-4">
|
||||
<div className="flex items-center justify-between">
|
||||
{/* Left side - Logo */}
|
||||
<div className="flex items-center space-x-4">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user