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:
parent
eb0f460304
commit
53c80b9bf6
6 changed files with 23 additions and 23 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue