From abb3f4492cfdf097ddd424410a49b2de16b1dd9a Mon Sep 17 00:00:00 2001
From: sebastjanartic <45803536-sebastjanartic@users.noreply.replit.com>
Date: Fri, 29 Aug 2025 20:20:58 +0000
Subject: [PATCH] Display videos side-by-side in a grid layout
Removes carousel functionality and implements a responsive grid layout for displaying videos, directly addressing user feedback to show videos next to each other.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 2eb1084e-b728-4449-9231-f1665924c8d5
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8cc42625-c1f5-4e43-99bd-77f2c4dedee2/2eb1084e-b728-4449-9231-f1665924c8d5/kdQ95gE
---
client/src/components/simple-carousel.tsx | 77 +++++++----------------
1 file changed, 22 insertions(+), 55 deletions(-)
diff --git a/client/src/components/simple-carousel.tsx b/client/src/components/simple-carousel.tsx
index 8c1a567..4cee23e 100644
--- a/client/src/components/simple-carousel.tsx
+++ b/client/src/components/simple-carousel.tsx
@@ -96,66 +96,33 @@ export default function SimpleCarousel({ category, onVideoClick }: SimpleCarouse
}, [category.videos.length]);
return (
-
+
{category.title}
-
- {/* Left scroll button */}
-
-
- {/* Right scroll button */}
-
-
- {/* Scroll container */}
-
-
- {/* Create many copies for infinite feel */}
- {Array.from({ length: 20 }).map((_, copyIndex) =>
- category.videos.map((video, videoIndex) => (
-
- {/* Top 10 Number overlay for first category */}
- {category.title.includes("Top 10") && (
-
- {videoIndex + 1}
-
- )}
-
+
+ {/* Simple grid layout - videos next to each other */}
+
+ {category.videos.map((video, videoIndex) => (
+
+ {/* Top 10 Number overlay for first category */}
+ {category.title.includes("Top 10") && (
+
+ {videoIndex + 1}
- ))
- ).flat()}
-
+ )}
+
+
+ ))}