From 53b0218f75fd9c7a9aa2389e4bae3cbea6218498 Mon Sep 17 00:00:00 2001 From: yuancheng Date: Tue, 21 Jul 2026 15:57:07 +0800 Subject: [PATCH] Fix over-broad .log-table header fix: lh.php/localtx.php are mixed-align The previous commit (4c58f85f) put class="log-table" on lh.php and localtx.php too, which forced *every* header left - but only Time/Mode/Callsign/Target are actually align="left" in those two files. Source/Duration/Loss/BER have no align attribute at all (plain ), so they were already correctly centered - the blanket fix just moved the misalignment from the first 4 columns to the last 4. Replace with a new `.al` class applied only to the specific elements whose column is genuinely align="left", leaving Source/Duration/Loss/BER headers on the sitewide centered default to match their centered data. last_herd.php/local_tx.php are untouched - every column in those two really is align="left", so table.log-table (all headers) remains correct there. --- admin/mmdvmhost/lh.php | 10 +++++----- admin/mmdvmhost/localtx.php | 10 +++++----- css/pistar-css-mini.php | 6 +++++- css/pistar-css.php | 16 ++++++++++++++-- mmdvmhost/lh.php | 10 +++++----- mmdvmhost/localtx.php | 10 +++++----- 6 files changed, 39 insertions(+), 23 deletions(-) diff --git a/admin/mmdvmhost/lh.php b/admin/mmdvmhost/lh.php index 882c5c3..539e301 100644 --- a/admin/mmdvmhost/lh.php +++ b/admin/mmdvmhost/lh.php @@ -57,12 +57,12 @@ if ($callsignLookupSvc == "QRZ") { $callsignLookupUrl = "https://www.qrz.com/db/ ?> - +
- - - - + + + + diff --git a/admin/mmdvmhost/localtx.php b/admin/mmdvmhost/localtx.php index ec2dc11..31808fe 100644 --- a/admin/mmdvmhost/localtx.php +++ b/admin/mmdvmhost/localtx.php @@ -29,12 +29,12 @@ if ($callsignLookupSvc == "QRZ") { $callsignLookupUrl = "https://www.qrz.com/db/ ?> -
()Time in time zoneTransmitted ModeCallsignTarget, D-Star Reflector, DMR Talk Group etc ()Time in time zoneTransmitted ModeCallsignTarget, D-Star Reflector, DMR Talk Group etc Received from source (s)Duration in Seconds Packet Loss
+
- - - - + + + + diff --git a/css/pistar-css-mini.php b/css/pistar-css-mini.php index a24e6b4..d2ba616 100644 --- a/css/pistar-css-mini.php +++ b/css/pistar-css-mini.php @@ -614,11 +614,15 @@ table th { border-bottom: 2px solid var(--accent); } -/* See css/pistar-css.php for why this is scoped to .log-table only. */ +/* See css/pistar-css.php for why there are two variants here. */ table.log-table th { text-align: left; } +th.al { + text-align: left; +} + table tr:nth-child(even) { background: var(--table-even); } diff --git a/css/pistar-css.php b/css/pistar-css.php index 5a9b2da..e3a9a9e 100644 --- a/css/pistar-css.php +++ b/css/pistar-css.php @@ -758,17 +758,29 @@ table th { } /* Log-style tables (Last Heard, Local TX, D-Star activity lists) render - every data cell with align="left"; headers inherit the sitewide + data cells with align="left"; headers inherit the sitewide `table { text-align: center; }` though, so the caption visually drifts away from its column's actual left-aligned content - most noticeable on wide columns like Target. Left-align just these headers rather than changing text-align sitewide, since the vast majority of the dashboard's other tables (config grids, status - tables) intentionally keep centered cells. */ + tables) intentionally keep centered cells. + + Two variants because not every log table is left-aligned in every + column: dstarrepeater's last_herd.php/local_tx.php are align="left" + in every cell, so the whole table gets .log-table. lh.php/localtx.php + mix the two - Time/Mode/Callsign/Target are align="left" but + Source/Duration/Loss/BER have no align attribute (i.e. stay + centered) - so only those specific
()Time in time zoneTransmitted ModeCallsignTarget, D-Star Reflector, DMR Talk Group etc ()Time in time zoneTransmitted ModeCallsignTarget, D-Star Reflector, DMR Talk Group etc Received from source (s)Duration in Seconds Bit Error Rate get .al instead of the + whole table, or their headers would drift the opposite way. */ table.log-table th { text-align: left; } +th.al { + text-align: left; +} + table tr:nth-child(even) { background: var(--table-even); } diff --git a/mmdvmhost/lh.php b/mmdvmhost/lh.php index 882c5c3..539e301 100644 --- a/mmdvmhost/lh.php +++ b/mmdvmhost/lh.php @@ -57,12 +57,12 @@ if ($callsignLookupSvc == "QRZ") { $callsignLookupUrl = "https://www.qrz.com/db/ ?> - +
- - - - + + + + diff --git a/mmdvmhost/localtx.php b/mmdvmhost/localtx.php index ec2dc11..31808fe 100644 --- a/mmdvmhost/localtx.php +++ b/mmdvmhost/localtx.php @@ -29,12 +29,12 @@ if ($callsignLookupSvc == "QRZ") { $callsignLookupUrl = "https://www.qrz.com/db/ ?> -
()Time in time zoneTransmitted ModeCallsignTarget, D-Star Reflector, DMR Talk Group etc ()Time in time zoneTransmitted ModeCallsignTarget, D-Star Reflector, DMR Talk Group etc Received from source (s)Duration in Seconds Packet Loss
+
- - - - + + + +
()Time in time zoneTransmitted ModeCallsignTarget, D-Star Reflector, DMR Talk Group etc ()Time in time zoneTransmitted ModeCallsignTarget, D-Star Reflector, DMR Talk Group etc Received from source (s)Duration in Seconds Bit Error Rate