Schmales Leerzeichen vor Einheiten in Uebersicht, Anlage, Speicher, Ladefenster

Vor W, kW, kWh, V, mV, A, % und °C steht jetzt ueberall U+2009 wie in der
Uebersicht von Hand begonnen (65 Stellen, nur in Anzeigetexten; CSS-Werte
und freistehende Achseneinheiten bleiben). Dazu "Wirkungsgrad 96 %" mit
Leerzeichen und die Heizstab-Temperaturen mit " / " wie Sonne und Netz.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
2026-09-15 21:08:14 +02:00
co-authored by Claude Opus 5
parent 1eeda335d1
commit 64f423da78
6 changed files with 55 additions and 55 deletions
+2 -2
View File
@@ -164,8 +164,8 @@
function leistungText(w) {
const a = Math.abs(w);
if (a < 1000) return Math.round(a) + " W";
return (a / 1000).toFixed(a < 10000 ? 2 : 1).replace(".", ",") + " kW";
if (a < 1000) return Math.round(a) + "W";
return (a / 1000).toFixed(a < 10000 ? 2 : 1).replace(".", ",") + "kW";
}
/** Liest mqttData: Werte kommen als Buffer, Zahl und Text wie gehabt. */