From c6f23856f080feee37c4972fb6689332b9873574 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Wed, 11 Nov 2026 20:29:51 +0100 Subject: feat(dashboard): rain into the battery chip while charging Streaks fall right to left across the empty part of the battery bar into the fill's edge while the tablet reports charging; still under prefers-reduced-motion. Co-Authored-By: Claude Opus 5.5 --- static/dashboard.js | 1 + 1 file changed, 1 insertion(+) (limited to 'static/dashboard.js') diff --git a/static/dashboard.js b/static/dashboard.js index 21e1cf3..70fdd6c 100644 --- a/static/dashboard.js +++ b/static/dashboard.js @@ -238,6 +238,7 @@ export default { const charging = b.status === "charging" || b.status === "full"; $(".c-bat .ic").textContent = batteryGlyph(b); chip(".c-bat", b.level != null ? `${b.level}%` : "—", null, b.level, b.level < 20 && !charging); + $(".c-bat").classList.toggle("charging", b.status === "charging"); chip(".c-wifi", w.rssi != null ? `${w.rssi} dBm` : "—", w.band ?? "", w.rssi == null ? 0 : 2 * (w.rssi + 100)); // -100 dBm empty, -50 full }); -- cgit v1.2.3