From 5034289fd211242879e8c9146bef06b8c1d41358 Mon Sep 17 00:00:00 2001 From: sebastjanartic <45803536-sebastjanartic@users.noreply.replit.com> Date: Mon, 1 Sep 2025 17:53:34 +0000 Subject: [PATCH] Center and limit content width for better display on large screens Introduces a new CSS class `.container` with `max-width: 1200px` and `margin: 0 auto` to center content. This class is applied to main content areas in `FolxStadlPage.tsx`, `VideoPage.tsx`, and `home.tsx` to resolve layout stretching issues on wide monitors. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 890577b1-c154-40a4-a177-a0c6d55320c3 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8cc42625-c1f5-4e43-99bd-77f2c4dedee2/890577b1-c154-40a4-a177-a0c6d55320c3/SHCPaqp --- client/src/index.css | 7 +++++ client/src/pages/FolxStadlPage.tsx | 4 +-- client/src/pages/VideoPage.tsx | 4 +-- client/src/pages/home.tsx | 43 +++++++++++++++--------------- 4 files changed, 33 insertions(+), 25 deletions(-) diff --git a/client/src/index.css b/client/src/index.css index d5fed7f..4c71203 100644 --- a/client/src/index.css +++ b/client/src/index.css @@ -370,6 +370,13 @@ input[data-testid*="search"]::placeholder { } } +/* Container for main content layout */ +.container { + max-width: 1200px; /* največja širina */ + margin: 0 auto; /* centriranje */ + padding: 0 20px; /* malo notranjega roba */ +} + /* iOS PWA safe area optimizacije */ @supports (padding: max(0px)) { .has-fixed-header { diff --git a/client/src/pages/FolxStadlPage.tsx b/client/src/pages/FolxStadlPage.tsx index 41df7cd..fcbe289 100644 --- a/client/src/pages/FolxStadlPage.tsx +++ b/client/src/pages/FolxStadlPage.tsx @@ -59,7 +59,7 @@ export default function FolxStadlPage() {
{/* Header */}
-
+
{/* Left side - Logo */}
@@ -154,7 +154,7 @@ export default function FolxStadlPage() {
{/* Main Content */} -
+
{/* Video List with Descriptions */}
diff --git a/client/src/pages/VideoPage.tsx b/client/src/pages/VideoPage.tsx index 873d412..b80e83b 100644 --- a/client/src/pages/VideoPage.tsx +++ b/client/src/pages/VideoPage.tsx @@ -238,7 +238,7 @@ export default function VideoPage() {
{/* Header */}
-
+
{/* Left side - Logo */}
@@ -332,7 +332,7 @@ export default function VideoPage() { )}
-
+
{/* Background logo decorations */}
{/* STICKY HEADER */}
-
+
{/* Left side - Logo */}
@@ -169,25 +169,26 @@ export default function Home() {
- - {/* Trikotniki na robovih - ne prekrivajo video kartic */} -
-
-
- {viewMode === "grid" ? ( - - ) : ( - {}} - viewMode={viewMode} - /> - )} +
+ {/* Trikotniki na robovih - ne prekrivajo video kartic */} +
+
+
+ {viewMode === "grid" ? ( + + ) : ( + {}} + viewMode={viewMode} + /> + )} +
@@ -200,7 +201,7 @@ export default function Home() { {/* Trikotniki v footerju - manjši in bolje pozicionirani */}
-
+