From 025963a78fd42f6707595a15f48550bb461a0355 Mon Sep 17 00:00:00 2001 From: Jared Vititoe Date: Sun, 5 Apr 2026 12:33:51 -0400 Subject: [PATCH] Make title column greedy when other columns are hidden Removes inline max-width/nowrap from title td, moves to CSS with width:99% so the title column absorbs all available space freed by hiding other columns. max-width:0 trick ensures overflow ellipsis still works correctly. Co-Authored-By: Claude Sonnet 4.6 --- assets/css/dashboard.css | 10 ++++++++++ views/DashboardView.php | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/assets/css/dashboard.css b/assets/css/dashboard.css index 7d8d265..6c788d7 100644 --- a/assets/css/dashboard.css +++ b/assets/css/dashboard.css @@ -8,6 +8,16 @@ margin-bottom: 1rem; } +/* ── Title column: greedy — absorbs freed space when cols hidden ─ */ +#tickets-table th[data-col="title"], +#tickets-table td.col-title { + width: 99%; + max-width: 0; /* lets overflow:hidden + ellipsis work */ + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + /* ── Column toggle panel ─────────────────────────────────────── */ .col-toggle-panel { position: absolute; diff --git a/views/DashboardView.php b/views/DashboardView.php index a5b909d..699ba4f 100644 --- a/views/DashboardView.php +++ b/views/DashboardView.php @@ -687,7 +687,7 @@ include __DIR__ . '/layout_header.php'; 'lt-badge-p1', 2 => 'lt-badge-p2', 3 => 'lt-badge-p3', default => 'lt-badge-p4' }; ?> P - +