diff --git a/backend/main.py b/backend/main.py index 95ed96c..97980e2 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 = "1079" # muss mit APP_VER in app.js übereinstimmen +APP_VER = "1080" # 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 3127ac3..df695bc 100644 --- a/backend/static/css/components.css +++ b/backend/static/css/components.css @@ -8867,13 +8867,15 @@ svg.empty-state-icon { } /* ============================================================ - Offline-Bereitschafts-Indikator — schwebend oben rechts + Offline-Bereitschafts-Indikator — schwebend über dem Welten-FAB + Sichtbar NUR wenn Welten aktiv sind (Sibling-Selektor) 5 Pfade — Score 0 (grau) bis 5 (grün, gefüllt) ============================================================ */ #offline-indicator { + display: none; /* Default: aus */ position: fixed; - top: calc(env(safe-area-inset-top, 0px) + 8px); - right: 12px; + right: 20px; /* gleicher right wie #worlds-fab */ + bottom: calc(env(safe-area-inset-bottom, 16px) + 16px + 54px + 12px); /* FAB-Bottom + FAB-Höhe + 12px */ width: 40px; height: 40px; border-radius: 50%; @@ -8882,14 +8884,16 @@ svg.empty-state-icon { -webkit-backdrop-filter: blur(6px); border: 1px solid rgba(0,0,0,0.08); box-shadow: 0 2px 8px rgba(0,0,0,0.12); - display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; - z-index: 9000; /* unter Modals (~9999), über allem anderen */ + z-index: 61; /* knapp über dem FAB (60), unter Modals */ transition: transform 0.12s, box-shadow 0.12s; } +/* Welten aktiv → Indikator sichtbar */ +#worlds-overlay.worlds-visible ~ #offline-indicator { display: flex; } + [data-theme="dark"] #offline-indicator { background: rgba(31,41,55,0.85); border-color: rgba(255,255,255,0.08); diff --git a/backend/static/index.html b/backend/static/index.html index dd16b3c..eb8d064 100644 --- a/backend/static/index.html +++ b/backend/static/index.html @@ -101,9 +101,9 @@ - - - + + + @@ -630,11 +630,11 @@ - - - - - + + + + + diff --git a/backend/static/js/app.js b/backend/static/js/app.js index 87aec8c..76397eb 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 = '1079'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen +const APP_VER = '1080'; // ← 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 711fce0..c5bfe25 100644 --- a/backend/static/sw.js +++ b/backend/static/sw.js @@ -4,7 +4,7 @@ ============================================================ */ // ← EINZIGE Stelle für die Version — STATIC_ASSETS und CACHE_VERSION leiten sich ab -const VER = '1079'; +const VER = '1080'; const CACHE_VERSION = `by-v${VER}`; const CACHE_STATIC = `${CACHE_VERSION}-static`; const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten