From 6e2f3946dfe5da51a384dafffd4649478606c11c Mon Sep 17 00:00:00 2001 From: Thomas Ciesla Date: Fri, 9 Jan 2026 12:41:36 +0100 Subject: [PATCH] table background color dependend of status --- jtl-wafi-dashboard.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jtl-wafi-dashboard.py b/jtl-wafi-dashboard.py index eba249c..c70b64c 100644 --- a/jtl-wafi-dashboard.py +++ b/jtl-wafi-dashboard.py @@ -1497,6 +1497,10 @@ def get_dashboard_html() -> str: th.sortable.asc .sort-icon, th.sortable.desc .sort-icon { opacity: 1; color: var(--accent); } td { border-top: 1px solid var(--border); font-size: 14px; } tr:hover td { background: rgba(255,255,255,0.02); } + #tableLink11 tbody tr td { background: rgba(0, 210, 106, 0.08); } + #tableLink11 tbody tr:hover td { background: rgba(0, 210, 106, 0.15); } + #tableDirect tbody tr td { background: rgba(255, 71, 87, 0.08); } + #tableDirect tbody tr:hover td { background: rgba(255, 71, 87, 0.15); } .status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 500; } .status-online { background: rgba(0,210,106,0.15); color: var(--success); } .status-offline { background: rgba(255,71,87,0.15); color: var(--danger); }