From ff27f8b498aab427f65aa4a5ea94164b5b111fdd Mon Sep 17 00:00:00 2001 From: ecki Date: Tue, 5 May 2026 14:08:49 +0200 Subject: [PATCH] Dark Mode gefixt --- backend/public/css/style.css | 37 ++++++++++++++++++++++++++++++++++++ backend/public/js/infra.js | 11 ++++++++++- 2 files changed, 47 insertions(+), 1 deletion(-) diff --git a/backend/public/css/style.css b/backend/public/css/style.css index b288f96..b007884 100644 --- a/backend/public/css/style.css +++ b/backend/public/css/style.css @@ -381,6 +381,26 @@ body.dark section{ background:#1f2937; } +body.dark .modal, +body.dark .modal-content{ + background:#f8fafc; + color:#0f172a; +} + +body.dark .modal label, +body.dark .modal h3, +body.dark .modal b{ + color:#0f172a; +} + +body.dark .modal input, +body.dark .modal textarea, +body.dark .modal select{ + background:#ffffff; + color:#0f172a; + border-color:#94a3b8; +} + body.dark th{ background:#111827; } @@ -495,3 +515,20 @@ body.dark .dns-badge.off{ body.dark .dns-detail{ color:#94a3b8; } + +body.dark .infra-sub, +body.dark .subdomain-detail{ + color:#cbd5e1; +} + +body.dark .infra-domain{ + color:#bfdbfe; +} + +body.dark .infra-ip{ + color:#e2e8f0; +} + +body.dark .system{ + color:#cbd5e1; +} diff --git a/backend/public/js/infra.js b/backend/public/js/infra.js index 5ad4156..7e62c99 100644 --- a/backend/public/js/infra.js +++ b/backend/public/js/infra.js @@ -7,6 +7,15 @@ window.loadInfrastructure = async function(){ const container = document.getElementById("infraView") container.innerHTML = "" + const formatSubdomainName = (subdomain, domainName) => { + if(!subdomain) return domainName || "" + if(!domainName) return subdomain + + return subdomain.endsWith("." + domainName) || subdomain === domainName + ? subdomain + : subdomain + "." + domainName + } + resources.forEach(r => { let html = ` @@ -45,7 +54,7 @@ window.loadInfrastructure = async function(){ html += `
- ↳ ${s.subdomain}.${s.domain_name} + ↳ ${formatSubdomainName(s.subdomain, s.domain_name)}
`