Fix: Offline-Pfote sichtbar by-default, JS versteckt nur, SW by-v1082

Logik umgedreht: Default ist 'sichtbar', JS setzt .is-hidden nur wenn
explizit nicht in Welten. So robust gegen Sibling-Selektor-Probleme
oder CSS-Compositing-Eigenheiten auf iOS PWA.

Außerdem: Hintergrund prominenter (rgba 0.95 statt 0.85), echter
Border statt Glas-Filter, stärkerer Schatten — bei den vorigen
Versuchen war die Pfote vermutlich auch durch Transparenz schwer zu
erkennen auf grauem Hintergrund.
This commit is contained in:
rene 2026-05-26 14:43:56 +02:00
parent eb0f460304
commit 53c80b9bf6
6 changed files with 23 additions and 23 deletions

View file

@ -3,7 +3,7 @@
Router, State-Management, Navigation, Initialisierung.
============================================================ */
const APP_VER = '1081'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
const APP_VER = '1082'; // ← 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.

View file

@ -190,12 +190,16 @@ window.OfflineIndicator = (() => {
// ----------------------------------------------------------
// Sichtbarkeit an Welten-Overlay koppeln
// — default sichtbar; nur ausblenden wenn explizit auf Detail-Seite
// ----------------------------------------------------------
function _syncVisibility() {
if (!_btn) return;
const ov = document.getElementById('worlds-overlay');
const inWorlds = !!ov?.classList.contains('worlds-visible');
_btn.classList.toggle('visible', inWorlds);
if (!ov) return; // ohne Welten-Overlay sichtbar lassen
const inWorlds = ov.classList.contains('worlds-visible')
|| ov.style.display === 'block'
|| ov.style.display === '';
_btn.classList.toggle('is-hidden', !inWorlds);
}
// ----------------------------------------------------------