diff --git a/custom_components/audi_dashboard/frontend/audi-dashboard-app.js b/custom_components/audi_dashboard/frontend/audi-dashboard-app.js index 5e8f29a..e7c9364 100644 --- a/custom_components/audi_dashboard/frontend/audi-dashboard-app.js +++ b/custom_components/audi_dashboard/frontend/audi-dashboard-app.js @@ -4239,9 +4239,17 @@ function setupFeldzeile(feld) { // und wird auch dort gezeigt. const einheit = feldEinheitAnzeige(feld); const erwartet = feld.liste ? "" : entitaetIdKurz(setupZuordnung[feld.key]); + // Nutzerkorrektur 2026-08-28: kein erfundenes statisches Beispiel mehr (war + // für Reichweite/Sofort-Aktualisierung schlicht falsch) - nur EINE Zeile, + // der tatsächlich zugeordnete Sensor (erwartet), als "(z. B. ...)" + // dargestellt. Der Klammertext selbst in Label-Größe/-Farbe, der Sensorname + // darin in derselben kleinen/grauen Schrift wie die Einheit ("[on/off]"). + const hinweis = erwartet + ? `(z. B. ${esc(erwartet)})` + : ""; const kopf = `
${esc(feld.label)}${einheit ? ` [${esc(einheit)}]` : ""} - ${erwartet ? `${esc(erwartet)}` : ""} + ${hinweis}
`; if (feld.liste) { return `
${kopf} diff --git a/custom_components/audi_dashboard/frontend/audi-dashboard.css b/custom_components/audi_dashboard/frontend/audi-dashboard.css index 1d46eba..04c662b 100644 --- a/custom_components/audi_dashboard/frontend/audi-dashboard.css +++ b/custom_components/audi_dashboard/frontend/audi-dashboard.css @@ -1279,12 +1279,18 @@ button.leaf:active { background: var(--tile-2); } audi-dashboard-app.js) steht NEBEN der Feld-Überschrift, nicht mehr wie die frühere statische Beschreibung darunter - deshalb Zeile statt Spalte. Die erwartete Einheit (feldEinheitAnzeige()) hängt direkt am Label selbst - ("Tankfüllstand [%]"), losgelöst davon, ob/welcher Sensor zugeordnet ist. */ + ("Tankfüllstand [%]"), losgelöst davon, ob/welcher Sensor zugeordnet ist. + 2026-08-28, Nutzerkorrektur: EINE Zeile "(z. B. sensor_id)" statt zwei - + der Klammertext "(z. B. "/")" in derselben Größe/Farbe wie das Label links + (.setup-feld-label), die Sensor-ID selbst darin in derselben kleinen/ + grauen Schrift wie die Einheit daneben (.setup-feld-einheit, + "[on/off]"/"[km]") - deshalb teilt sich .setup-feld-hinweis die Klasse + .setup-feld-einheit für den inneren Span statt einer eigenen Regel. */ .setup-feld-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; } .setup-feld-label { font-size: 14.5px; color: var(--fg); flex: 0 1 auto; } .setup-feld-einheit { color: var(--fg3); font-size: 12.5px; } .setup-feld-hinweis { - font-size: 12.5px; color: var(--fg2); line-height: 1.4; text-align: right; + font-size: 14.5px; color: var(--fg); line-height: 1.4; text-align: right; max-width: 55%; } .setup-unterfelder { display: flex; flex-direction: column; gap: 12px; } diff --git a/custom_components/audi_dashboard/manifest.json b/custom_components/audi_dashboard/manifest.json index c9900f6..43f1bf1 100644 --- a/custom_components/audi_dashboard/manifest.json +++ b/custom_components/audi_dashboard/manifest.json @@ -1,7 +1,7 @@ { "domain": "audi_dashboard", "name": "Audi Dashboard", - "version": "2026.8.28.16", + "version": "2026.8.28.18", "documentation": "https://gitea.nothaft.cloud/paul/audi-app/src/branch/main/README.md", "issue_tracker": "https://gitea.nothaft.cloud/paul/audi-app/issues", "codeowners": ["@paul"],