Add real Audi CI battery/edit icons, manual km-correction for tire sets

Replaced the hand-drawn placeholder battery icon with the real Audi CI
battery-12v-l/-s (user supplied the actual SVGs) next to "Ruhespannung",
matching the existing poi-l/poi-s size-variant convention.

Added a km-correction control to the Sommerräder/Winterräder tiles: a
pencil icon (Audi CI edit-s) opens an inline field to manually correct
the tire-set's accumulated km. The tricky part was persistence -
configCarZuProfil() deliberately never writes km back (a stale browser
copy could otherwise clobber a since-elapsed automatic increment), so
this needed its own backend service, audi_dashboard_reifen_km_setzen,
that overwrites only the stored counter and leaves referenz_odo_km
alone - the existing odometer-delta tracking in reifenzaehler.py then
continues accumulating from the corrected value on its own, no other
backend change required.

Co-Authored-By: Claude Opus 5 <[email protected]>
This commit is contained in:
2026-08-16 23:16:08 +02:00
co-authored by Claude Opus 5
parent 8b3e5b2b8f
commit 6bf7435434
7 changed files with 273 additions and 10 deletions
+19
View File
@@ -340,6 +340,10 @@ button.tile, .tilebtn { transition: background .15s, transform .1s; }
color: var(--fg);
display: block;
}
/* Icon + Text statt reinem Fließtext-Label (z.B. Batterie-Symbol vor
"Ruhespannung") - dieselbe Zeilen-Geometrie wie .sync in der Kopfzeile. */
.bv-skala-kopf { display: flex; align-items: center; gap: 6px; }
/* A4: Messwerte erben nie mehr das uppercase der Label-Klasse. */
.wert {
font-size: 14px;
@@ -907,6 +911,21 @@ button.tile, .tilebtn { transition: background .15s, transform .1s; }
.radkopf-row { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--sp-4); }
.radkopf { display: flex; flex-direction: column; }
/* Editier-Symbol links neben der km-Anzeige (Audi-CI edit-s) - oeffnet das
Korrekturfeld fuer den manuell gepflegten Kilometerstand des Reifensatzes.
44x44pt Tippflaeche per unsichtbarem ::before wie bei .montiert/.zahnrad,
optisch bleibt nur das kleine Symbol sichtbar. */
.km-edit {
position: relative;
display: inline-flex; align-items: center; justify-content: center;
width: 22px; height: 22px;
border: none; background: none; color: var(--fg3);
padding: 0; cursor: pointer; flex: 0 0 auto;
}
.km-edit::before { content: ""; position: absolute; inset: -11px; }
.km-edit:hover { color: var(--fg); }
.km-edit:active { color: var(--fg); transform: scale(.92); }
/* Kompakte Pille statt voller Breite (Apple-HIG-Pull-down-Maß): normale
Flusslage unter der Kachel-Überschrift/km, nicht mehr über dem Foto
überlagert (das saß nur dort, solange Überschrift+km diesen Platz noch