style: improve table styling and structure for targets display

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
Gabriel20xxandCopilot committed 2026-05-02 17:28:13 +02:00
1 parent 9e4afae733
commit 6bd5e9d725
1 file changed
+4 -6
+4 -6
View File
@@ -553,10 +553,8 @@ app.get('/', async (req, res) => {
}
.target-badge.online { background: #14532d; color: #4ade80; }
.target-badge.offline { background: #450a0a; color: #f87171; }
#targets-table { width: 100%; margin-top: 0.5rem; }
#targets-table th { text-align: left; font-size: 0.72rem; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: 0.04em; padding: 0 0.75rem 0.5rem; }
#targets-table td { padding: 0.55rem 0.75rem; border-top: 1px solid #1e293b; font-size: 0.82rem; }
#targets-table tbody tr:hover td { background: #1e293b; }
#targets-table td { padding: 0.55rem 1.25rem; }
#targets-table tbody tr:hover td { background: #243044; }
.tgt-label { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.tgt-url { font-size: 0.72rem; color: #64748b; font-family: monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.tgt-pct { font-weight: 700; }
@@ -664,8 +662,8 @@ app.get('/', async (req, res) => {
</div>
</div>
<div class="panel" style="overflow:hidden">
<div class="panel-title">Targets</div>
<div class="table-wrap">
<div class="table-header">Targets</div>
<table id="targets-table">
<thead><tr><th>Label</th><th>URL</th><th>Status</th><th>Uptime</th><th>Outages</th><th>Downtime</th></tr></thead>
<tbody id="targets-summary"></tbody>