From 6721597779d371533071b6d6beb1902c42c77e91 Mon Sep 17 00:00:00 2001 From: rene Date: Sat, 16 May 2026 09:15:41 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20Desktop=20Chips:=20!important=20overrides?= =?UTF-8?q?=20f=C3=BCr=20flex=20+=20grid-template-columns=20unset?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Das grid blieb wegen Spezifität aktiv. Explizite !important auf display:flex, flex-wrap:nowrap, grid-template-columns:unset erzwingen die Eine-Zeile-Darstellung. components.css ?v=1008, SW by-v1009, APP_VER 1009 --- backend/main.py | 2 +- backend/static/css/components.css | 23 ++++++++++++----------- backend/static/index.html | 2 +- backend/static/js/app.js | 2 +- backend/static/sw.js | 2 +- 5 files changed, 16 insertions(+), 15 deletions(-) diff --git a/backend/main.py b/backend/main.py index f2d6c59..24683ec 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 = "1008" # muss mit APP_VER in app.js übereinstimmen +APP_VER = "1009" # 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 b0bcafa..17a6202 100644 --- a/backend/static/css/components.css +++ b/backend/static/css/components.css @@ -7918,19 +7918,20 @@ svg.empty-state-icon { } /* Alle Chips in einer Zeile, zentriert, egal wie viele aktiv */ .world-chips-grid { - display: flex; - flex-direction: row; - flex-wrap: nowrap; - justify-content: center; - max-width: none; - margin: 0; - gap: 7px; + display: flex !important; + flex-direction: row !important; + flex-wrap: nowrap !important; + justify-content: center !important; + grid-template-columns: unset !important; + max-width: none !important; + margin: 0 !important; + gap: 7px !important; } .world-chip { - flex: 0 1 80px; - min-width: 60px; - width: 80px; - min-height: 74px; + flex: 0 1 80px !important; + min-width: 60px !important; + width: 80px !important; + min-height: 74px !important; } /* Nav vertikal zentriert zwischen Chips und Footer */ #world-labels { diff --git a/backend/static/index.html b/backend/static/index.html index 35e0f1e..f366517 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 2f0b7e0..6b8e782 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 = '1008'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen +const APP_VER = '1009'; // ← 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 552ae8b..9fadc80 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-v1008'; +const CACHE_VERSION = 'by-v1009'; 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