From 71a1371b44b4743f9477ce4839a61f6c7810ecc5 Mon Sep 17 00:00:00 2001 From: rene Date: Thu, 23 Apr 2026 17:52:28 +0200 Subject: [PATCH 1/2] Session 2026-04-23: Desktop Multi-Column, Forum, Fixes, Analytics MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Desktop ≥1024px: page-container 680→860px - Walks: Liste+Karte nebeneinander, View-Toggle ausgeblendet - Forum: Rubriken 2-zeilig via CSS Grid (ceil(n/2) Spalten, zentriert) - Welcome: max-width 920px, Feature-Sections 2-spaltig - Wissen: Toggle-Mechanismus entfernt, Items immer sichtbar - Übungen Plan-Karten: vertikal statt horizontal gestapelt - Admin Analytics: Umami v2 gibt plain numbers statt {value:X} - CSS-Spezifität: #page-forum nötig wegen layout.css < components.css - SW by-v312, APP_VER 300 --- backend/static/css/components.css | 1 + backend/static/css/layout.css | 83 +++++++++++++++++++++++++++++ backend/static/index.html | 29 +++++----- backend/static/js/app.js | 30 +---------- backend/static/js/pages/admin.js | 19 ++++--- backend/static/js/pages/forum.js | 27 ++++++---- backend/static/js/pages/uebungen.js | 6 +-- backend/static/js/pages/walks.js | 12 +++++ backend/static/js/pages/welcome.js | 12 ++--- backend/static/sw.js | 2 +- 10 files changed, 149 insertions(+), 72 deletions(-) diff --git a/backend/static/css/components.css b/backend/static/css/components.css index 958a606..6f71a25 100644 --- a/backend/static/css/components.css +++ b/backend/static/css/components.css @@ -210,6 +210,7 @@ } .by-tabs::-webkit-scrollbar { display: none; } + .by-tab { flex-shrink: 0; padding: var(--space-2) var(--space-3); diff --git a/backend/static/css/layout.css b/backend/static/css/layout.css index 2ba5c74..761cb2f 100644 --- a/backend/static/css/layout.css +++ b/backend/static/css/layout.css @@ -567,6 +567,89 @@ .grid-3 { grid-template-columns: 1fr 1fr; } } +/* ============================================================ + Desktop Multi-Column Layouts (min-width: 1024px) + ============================================================ */ +@media (min-width: 1024px) { + + /* Etwas breiterer Standard-Container auf großen Screens */ + .page-container { max-width: 860px; } + + /* ---------------------------------------------------------- + WELCOME: 2-spaltige Feature-Sections, zentrierter Hero + ---------------------------------------------------------- */ + .welcome-layout { max-width: 920px; } + + .welcome-sections { + display: grid; + grid-template-columns: 1fr 1fr; + gap: var(--space-4); + align-items: start; + } + + .welcome-sections .card { margin-bottom: 0; } + + /* ---------------------------------------------------------- + WALKS: Liste (links) + Karte (rechts) nebeneinander + ---------------------------------------------------------- */ + #page-walks .page-container { max-width: none; } + + .walks-layout { + flex-direction: row; + align-items: stretch; + } + + /* View-Toggle auf Desktop nicht nötig */ + .walks-view-toggle { display: none; } + + /* Beide Panels immer sichtbar */ + #walks-list-view, + #walks-map-view { + display: flex !important; + flex-direction: column; + } + + #walks-list-view { + width: 340px; + flex-shrink: 0; + border-right: 1px solid var(--c-border-light); + } + + #walks-map-view { flex: 1; } + + /* Toolbar-Zeile kompakter da Toggle wegfällt */ + #page-walks .by-toolbar { padding: var(--space-2) var(--space-4); } + + /* ---------------------------------------------------------- + FORUM: Rubriken über volle Breite, Threads darunter + ---------------------------------------------------------- */ + #page-forum .page-container { max-width: 1100px; } + + /* Rubriken auf genau 2 Zeilen verteilen, zentriert + — #page-forum nötig für Spezifität > .by-tabs (components.css lädt später) */ + #page-forum .forum-category-tabs { + display: grid; + grid-template-columns: repeat(var(--forum-tab-cols, 7), minmax(0, 1fr)); + overflow: visible; + gap: var(--space-1); + padding-bottom: var(--space-2); + } + + #page-forum .forum-category-tabs .by-tab { + justify-content: center; + text-align: center; + white-space: nowrap; + } + + /* Suche + Threads volle Breite */ + .forum-main-col { + display: flex; + flex-direction: column; + gap: var(--space-3); + } + +} + /* ============================================================ Phosphor Icons — SVG Sprite ============================================================ */ diff --git a/backend/static/index.html b/backend/static/index.html index 0fad607..c567bfb 100644 --- a/backend/static/index.html +++ b/backend/static/index.html @@ -169,23 +169,18 @@ - -