diff --git a/client/src/components/simple-carousel.tsx b/client/src/components/simple-carousel.tsx
index 8c1a567..b93d165 100644
--- a/client/src/components/simple-carousel.tsx
+++ b/client/src/components/simple-carousel.tsx
@@ -101,62 +101,27 @@ export default function SimpleCarousel({ category, onVideoClick }: SimpleCarouse
{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}
-
- )}
-
-
- ))
- ).flat()}
+ {/* Container z flex wrap */}
+
+ {category.videos.map((video, videoIndex) => (
+
+ {/* Top 10 Number overlay for first category */}
+ {category.title.includes("Top 10") && (
+
+ {videoIndex + 1}
+
+ )}
+
-
+ ))}
);
diff --git a/client/src/index.css b/client/src/index.css
index a689e01..44ad051 100644
--- a/client/src/index.css
+++ b/client/src/index.css
@@ -401,6 +401,30 @@ input[data-testid*="search"]::placeholder {
font-display: swap;
}
+/* Container flex wrap styles */
+.container {
+ display: flex;
+ flex-wrap: wrap;
+ justify-content: center;
+ gap: 10px; /* Razmik med slikami */
+ padding: 10px;
+}
+
+.poster {
+ width: 150px; /* Velikost slike */
+ height: auto; /* Ohranja razmerje */
+}
+
+@media (max-width: 768px) {
+ .container {
+ flex-direction: column; /* Slike ena pod drugo */
+ align-items: center;
+ }
+ .poster {
+ width: 120px; /* Manjša velikost za mobilne naprave */
+ }
+}
+
/* Hide picture-in-picture button on all video elements */
video::-webkit-media-controls-picture-in-picture-button {
display: none !important;