Adjust video display sizes and layout for better viewing
Update client/src/components/netflix-grid.tsx and client/src/pages/home.tsx to reduce the maximum width of category rows, decrease the width of individual video cards, and adjust the main content container's max-width and padding. 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/3f1nxbo
This commit is contained in:
parent
293b269bd8
commit
79082f36fc
BIN
attached_assets/image_1756747761483.png
Normal file
BIN
attached_assets/image_1756747761483.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.5 MiB |
@ -248,7 +248,7 @@ function CategoryRow({ category, onVideoClick, hideScrollButtons = false }: Cate
|
||||
ref={scrollRef}
|
||||
className="flex gap-4 overflow-x-auto pl-4 pr-4"
|
||||
style={{
|
||||
maxWidth: '800px',
|
||||
maxWidth: '600px',
|
||||
margin: '0 auto',
|
||||
scrollbarWidth: 'none',
|
||||
msOverflowStyle: 'none'
|
||||
@ -257,7 +257,7 @@ function CategoryRow({ category, onVideoClick, hideScrollButtons = false }: Cate
|
||||
{category.videos.map((video, index) => (
|
||||
<div
|
||||
key={video.id}
|
||||
className="flex-shrink-0 w-[280px]"
|
||||
className="flex-shrink-0 w-[180px]"
|
||||
>
|
||||
<VideoCard
|
||||
video={video}
|
||||
|
||||
@ -168,7 +168,7 @@ export default function Home() {
|
||||
)}
|
||||
</div>
|
||||
|
||||
<main className="max-w-4xl mx-auto pt-4 pb-8 relative px-4">
|
||||
<main className="max-w-2xl mx-auto pt-4 pb-8 relative px-8">
|
||||
|
||||
{/* Trikotniki na robovih - dvignjeni višje */}
|
||||
<div className="absolute top-2 right-2 w-0 h-0 border-l-[70px] border-l-transparent border-r-[70px] border-r-transparent border-b-[100px] border-b-blue-400/8 rotate-12 z-0"></div>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user