From ec55e5808e607246d7bb02a04133376dea2bf0e9 Mon Sep 17 00:00:00 2001 From: Tobi G Date: Sun, 16 Aug 2026 20:52:46 +0200 Subject: [PATCH] Fix real tab-bar-icons-vanish bug, dropdown popup color, wheel/Montiert swap The reported "whole tab bar disappears when hiding labels" bug was real, just one level deeper than first checked. .tabbar.ohne .tab span{display: none} targeted the label span, but the icon is also wrapped in a - a bare "span" type selector doesn't care about class, so the icon's own wrapper collapsed too. Confirmed by measuring the directly (0x0 bounding rect) after a live screenshot showed all 5 tab buttons empty. Fixed with :not(.tabpille) in both stylesheets. The Modell dropdown was still bright despite the color-scheme hint from the last commit: a ${t.label}`, but the icon is *also* wrapped in a `` — a bare type selector `span` does not care about class, so the rule hid the + icon's wrapper too. `getBoundingClientRect()` on the `` read `{w:0,h:0}` and + `getComputedStyle(.tabpille).display` read `"none"` once actually checked — that was the missing + measurement in the first pass. This is exactly the reported "whole menu bar disappears": in icon- + only mode every tab lost both its label *and* its icon, leaving five empty buttons in an otherwise + correctly-visible bar. Fixed with `.tabbar.ohne .tab span:not(.tabpille){display:none}` in both + `audi-dashboard.css` and `audi-dashboard-ios.css` (the base file's copy was already shadowed by + the ios one at matching specificity, but fixed too rather than left as a landmine). Verified live + via screenshot: all 5 tab icons render correctly in icon-only mode, active tab still shows its + filled pill. - [ ] Fix remaining documentation drift (statistics claim, README gaps, obsolete TODO comment) — text-only changes; INSTALL.md's WLAN/TommiG1 drift and stale variable names were fixed 2026-08-12 (see section B); `DESIGN_REVIEW_2026-08-13.md` and `REVIEW_main_2026-08-13.md` diff --git a/homeassistant/installationspaket/www/audi-dashboard-ios.css b/homeassistant/installationspaket/www/audi-dashboard-ios.css index 22cf15c..83ecf0f 100644 --- a/homeassistant/installationspaket/www/audi-dashboard-ios.css +++ b/homeassistant/installationspaket/www/audi-dashboard-ios.css @@ -214,8 +214,12 @@ main#view{--seitenrand:16px;padding:0 var(--seitenrand) 30px;scroll-behavior:smo :host([data-theme="tag"]) .tabbar{background:rgba(242,242,247,.78)} .tab{border-top:0;margin-top:0;padding:7px 2px 6px;gap:3px; font-size:10px;letter-spacing:0;text-transform:none;color:var(--ios-grau)} -/* Beschriftung folgt weiter dem Schalter in den Einstellungen */ -.tabbar.ohne .tab span{display:none} +/* Beschriftung folgt weiter dem Schalter in den Einstellungen. + :not(.tabpille) ist Pflicht: die Icon-Huelle ist ebenfalls ein (span + class="tabpille"), ein blosses ".tab span" traf also nicht nur das Label + sondern auch die Pille selbst - das Icon verschwand mit, nicht nur der + Text. Genau das war der gemeldete "ganze Menueleiste verschwindet"-Bug. */ +.tabbar.ohne .tab span:not(.tabpille){display:none} .tab svg{width:26px;height:26px;stroke-width:1.5} /* myAudi-Menueleiste: das aktive Symbol sitzt hell in einer gefuellten Pille, die uebrigen bleiben grau - kein farbiger Tint, kein Oberkantenstrich. */ diff --git a/homeassistant/installationspaket/www/audi-dashboard.css b/homeassistant/installationspaket/www/audi-dashboard.css index 2a9c3d4..5a91c0b 100644 --- a/homeassistant/installationspaket/www/audi-dashboard.css +++ b/homeassistant/installationspaket/www/audi-dashboard.css @@ -268,7 +268,11 @@ main#view::-webkit-scrollbar { width: 0; height: 0; } .tab svg.voll { fill: currentColor; stroke: none; } .tab:active svg { transform: scale(.9); } .tab span { font-size: 11px; letter-spacing: .01em; } -.tabbar.ohne .tab span { display: none; } +/* :not(.tabpille) - die Icon-Huelle ist selbst ein , ein blosses + ".tab span" hier hiess frueher auch der Pille (samt Icon) display:none. + Ueberschrieben von derselben Regel in audi-dashboard-ios.css (dieselbe + Spezifitaet, spaeter geladen), aber auch hier falsch und daher fixiert. */ +.tabbar.ohne .tab span:not(.tabpille) { display: none; } .tabbar.ohne .tab { padding: 14px 0 12px; } .tabbar.ohne .tab svg { width: 26px; height: 26px; } @@ -449,8 +453,10 @@ button.tile, .tilebtn { transition: background .15s, transform .1s; } /* .bildbox.radbild statt .radbild allein: .bildbox unten setzt width/aspect- ratio auf derselben Spezifitaet (eine Klasse) und gewinnt als spaeter notierte Regel sonst automatisch - die Box blieb dadurch bislang die volle - Kachelbreite im 4:3-Format statt eines echten 96x96-Quadrats. */ -.bildbox.radbild { width: 96px; height: 96px; aspect-ratio: 1 / 1; } + Kachelbreite im 4:3-Format statt eines echten 96x96-Quadrats. + margin-left:auto schiebt das feste 96px-Quadrat an den rechten Rand des + vollbreiten data-bildklick-Wrappers - Montiert sitzt links (siehe unten). */ +.bildbox.radbild { width: 96px; height: 96px; aspect-ratio: 1 / 1; margin-left: auto; } .bildbox { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; } .bildbox img { display: block; width: 100%; height: 100%; object-fit: cover; } @@ -527,6 +533,13 @@ button.tile, .tilebtn { transition: background .15s, transform .1s; } appearance: none; } .feld input:focus, .feld select:focus, .notiz:focus { outline: none; border-color: var(--red); } +/* Das AUFGEKLAPPTE -Popup ist Browser-/OS-Chrome, kein Teil des + Seiten-DOMs - color-scheme (siehe :host weiter oben) beeinflusst es nur + teilweise, der Rest bleibt hell. Einzige zuverlaessige Stellschraube: + Chrome (u.a.) rendert die Zeilen im Popup tatsaechlich mit dem hier + gesetzten background-color/color statt Systemfarben - deckende Werte, + var(--tile-2) im Nacht-Theme ist transparent und wuerde durchscheinen. */ +.feld select option { background-color: var(--canvas); color: var(--fg); } /* Pull-down-Button-Optik (Apple HIG): einzelner Abwaerts-Chevron statt des durch appearance:none oben entfernten nativen Browser-Pfeils. */ .feld select {