Adjust video grid spacing for better visual alignment
Update the scroll amount in the Netflix grid component to scroll by 4 cards with adjusted card width (240px + 12px gap), improving visual alignment. 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
8ff6ddf080
commit
6abaaca81d
@ -188,8 +188,8 @@ function CategoryRow({ category, onVideoClick, hideScrollButtons = false }: Cate
|
|||||||
|
|
||||||
const scroll = (direction: 'left' | 'right') => {
|
const scroll = (direction: 'left' | 'right') => {
|
||||||
if (scrollRef.current) {
|
if (scrollRef.current) {
|
||||||
// Scroll exactly 4 cards (300px + 12px gap = 312px per card)
|
// Scroll exactly 4 cards (240px + 12px gap = 252px per card)
|
||||||
const cardWidth = 300 + 12; // card width + gap
|
const cardWidth = 240 + 12; // card width + gap
|
||||||
const scrollAmount = cardWidth * 4; // 4 cards at once
|
const scrollAmount = cardWidth * 4; // 4 cards at once
|
||||||
|
|
||||||
const currentScroll = scrollRef.current.scrollLeft;
|
const currentScroll = scrollRef.current.scrollLeft;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user