diff --git a/backend/main.py b/backend/main.py index 00b602e..95ed96c 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 = "1078" # muss mit APP_VER in app.js übereinstimmen +APP_VER = "1079" # 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 24186fe..3127ac3 100644 --- a/backend/static/css/components.css +++ b/backend/static/css/components.css @@ -8867,9 +8867,36 @@ svg.empty-state-icon { } /* ============================================================ - Offline-Bereitschafts-Indikator (Pfote im Header) + Offline-Bereitschafts-Indikator — schwebend oben rechts 5 Pfade — Score 0 (grau) bis 5 (grün, gefüllt) ============================================================ */ +#offline-indicator { + position: fixed; + top: calc(env(safe-area-inset-top, 0px) + 8px); + right: 12px; + width: 40px; + height: 40px; + border-radius: 50%; + background: rgba(255,255,255,0.85); + backdrop-filter: blur(6px); + -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 */ + transition: transform 0.12s, box-shadow 0.12s; +} +[data-theme="dark"] #offline-indicator { + background: rgba(31,41,55,0.85); + border-color: rgba(255,255,255,0.08); +} +#offline-indicator:active { transform: scale(0.92); } +#offline-indicator .offline-paw { width: 24px; height: 24px; } + .offline-paw .paw-elem { color: var(--c-text-muted); transition: stroke 0.5s ease, fill 0.5s ease; @@ -8878,14 +8905,6 @@ svg.empty-state-icon { color: var(--c-success); fill: var(--c-success); } -#offline-indicator { - background: none; - border: none; - cursor: pointer; -} -#offline-indicator:hover .paw-elem { - opacity: 0.85; -} .offline-status-row { display: flex; diff --git a/backend/static/index.html b/backend/static/index.html index d26e715..dd16b3c 100644 --- a/backend/static/index.html +++ b/backend/static/index.html @@ -101,9 +101,9 @@ - - - + + +
@@ -325,25 +325,6 @@ Ban Yaro -