Fix dark mode: sync dark class to html element for Tailwind

This commit is contained in:
2026-05-26 21:56:11 -04:00
parent 315a0dfbcb
commit dc932ea9dd
+2
View File
@@ -613,6 +613,7 @@ function dashboard() {
toggleDark() {
this.dark = !this.dark;
localStorage.setItem('dark', String(this.dark));
document.documentElement.classList.toggle('dark', this.dark);
},
portAccessLabel(port, inv) {
@@ -650,6 +651,7 @@ function dashboard() {
},
init() {
document.documentElement.classList.toggle('dark', this.dark);
// Each service has: external (public domain/ip), lan (192.168.x), ts (tailscale 100.x)
// Fields left undefined = not applicable
this.publicServices = [