From 9816075c7e4027f875fb49a60f4dcbcb740c4408 Mon Sep 17 00:00:00 2001 From: rene Date: Sat, 16 May 2026 09:36:28 +0200 Subject: [PATCH] Desktop JETZT: world-top max-width 860px zentriert MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Greeting-Karte + Wetter/Route/Übung-Chips stretchen nicht mehr auf volle Desktopbreite. Chips sind je ~280px breit — deutlich kompakter als vorher. components.css ?v=1010, SW by-v1013, APP_VER 1013 --- backend/main.py | 2 +- backend/static/css/components.css | 7 +++++++ backend/static/index.html | 2 +- backend/static/js/app.js | 2 +- backend/static/sw.js | 2 +- 5 files changed, 11 insertions(+), 4 deletions(-) diff --git a/backend/main.py b/backend/main.py index 82e31f9..4c685df 100644 --- a/backend/main.py +++ b/backend/main.py @@ -410,7 +410,7 @@ async def serve_media(path: str, request: _Request): raise _HE(404, "Nicht gefunden.") return _media_response(filepath) -APP_VER = "1012" # muss mit APP_VER in app.js übereinstimmen +APP_VER = "1013" # muss mit APP_VER in app.js übereinstimmen @app.get("/.well-known/assetlinks.json") async def assetlinks(): diff --git a/backend/static/css/components.css b/backend/static/css/components.css index 52cb71c..22aa8d2 100644 --- a/backend/static/css/components.css +++ b/backend/static/css/components.css @@ -7916,6 +7916,13 @@ svg.empty-state-icon { .world-panel { padding-top: calc(env(safe-area-inset-top, 0px) + 48px); } + /* Top-Bereich (Greeting + Wetter/Route/Übung) zentriert und begrenzt */ + .world-top { + max-width: 860px; + margin-left: auto; + margin-right: auto; + width: 100%; + } /* Alle Chips in einer Zeile, zentriert, egal wie viele aktiv */ .world-chips-grid { display: flex !important; diff --git a/backend/static/index.html b/backend/static/index.html index 52cbcc2..cf61fa9 100644 --- a/backend/static/index.html +++ b/backend/static/index.html @@ -103,7 +103,7 @@ - + diff --git a/backend/static/js/app.js b/backend/static/js/app.js index a56e84b..76ea9ff 100644 --- a/backend/static/js/app.js +++ b/backend/static/js/app.js @@ -3,7 +3,7 @@ Router, State-Management, Navigation, Initialisierung. ============================================================ */ -const APP_VER = '1012'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen +const APP_VER = '1013'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen const APP_VERSION = '1.6.0'; // ← semantische Version, wird bei make release gesetzt const IS_STAGING = location.hostname === 'staging.banyaro.app'; // Cache-Bust-Parameter nach Update-Reload sofort entfernen diff --git a/backend/static/sw.js b/backend/static/sw.js index 010599e..e333ac1 100644 --- a/backend/static/sw.js +++ b/backend/static/sw.js @@ -3,7 +3,7 @@ Offline-Cache + Push Notifications + Tile-Cache ============================================================ */ -const CACHE_VERSION = 'by-v1012'; +const CACHE_VERSION = 'by-v1013'; const CACHE_STATIC = `${CACHE_VERSION}-static`; const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten const CACHE_API = 'ban-yaro-api-v1'; // API-Response-Cache