Adjust layout to improve content visibility on the homepage
Update horizontal scrolling and padding in the category row component, and adjust homepage container padding for better content presentation. 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/M6U47Dp
This commit is contained in:
parent
4be4039707
commit
84cde4e194
BIN
attached_assets/image_1756738528721.png
Normal file
BIN
attached_assets/image_1756738528721.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.2 MiB |
@ -247,7 +247,7 @@ 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 px-4 max-w-6xl mx-auto"
|
||||
className="flex gap-3 overflow-x-auto scrollbar-hide pb-0 pl-4 pr-16"
|
||||
style={{ scrollbarWidth: 'none', msOverflowStyle: 'none' }}
|
||||
>
|
||||
{category.videos.map((video, index) => (
|
||||
|
||||
@ -74,10 +74,10 @@ export default function Home() {
|
||||
}, [searchQuery, refetch]);
|
||||
|
||||
return (
|
||||
<div className="has-fixed-header lg:mx-[38px]" style={{minHeight: '100vh', background: 'linear-gradient(135deg, hsl(250, 50%, 15%) 0%, hsl(240, 30%, 25%) 100%)', color: 'white'}}>
|
||||
<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="max-w-6xl mx-auto px-4 py-4">
|
||||
<div className="pl-4 pr-16 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