diff --git a/backend/main.py b/backend/main.py index f22fee0..d4f52c9 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 = "1076" # muss mit APP_VER in app.js übereinstimmen +APP_VER = "1077" # 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 41d4e27..24186fe 100644 --- a/backend/static/css/components.css +++ b/backend/static/css/components.css @@ -8865,3 +8865,51 @@ svg.empty-state-icon { overflow: hidden; position: relative; } + +/* ============================================================ + Offline-Bereitschafts-Indikator (Pfote im Header) + 5 Pfade — Score 0 (grau) bis 5 (grün, gefüllt) + ============================================================ */ +.offline-paw .paw-elem { + color: var(--c-text-muted); + transition: stroke 0.5s ease, fill 0.5s ease; +} +.offline-paw .paw-elem.filled { + 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; + align-items: center; + gap: var(--space-3); + padding: var(--space-2) var(--space-3); + border-radius: var(--radius-md); + border: 1px solid var(--c-border-light); + font-size: var(--text-sm); + margin-bottom: var(--space-2); +} +.offline-status-row .osr-check { + width: 24px; + height: 24px; + border-radius: 50%; + display: flex; + align-items: center; + justify-content: center; + flex-shrink: 0; + font-size: 14px; + font-weight: 700; +} +.offline-status-row.ok .osr-check { background: var(--c-success); color: #fff; } +.offline-status-row.miss .osr-check { background: var(--c-surface-2); color: var(--c-text-muted); border: 1px dashed var(--c-border); } +.offline-status-row .osr-text { flex: 1; min-width: 0; } +.offline-status-row .osr-title { font-weight: 600; } +.offline-status-row .osr-detail { font-size: var(--text-xs); color: var(--c-text-muted); margin-top: 2px; } diff --git a/backend/static/index.html b/backend/static/index.html index 8cef0ca..a85acae 100644 --- a/backend/static/index.html +++ b/backend/static/index.html @@ -101,9 +101,9 @@ - - - + + +
@@ -325,6 +325,25 @@ Ban Yaro +