From c0262101ff907fb435ef52178232d951e143f028 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Fri, 23 Oct 2026 17:11:08 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20style:=20admin=20runners=20table?= =?UTF-8?q?=20sizes=20its=20columns=20and=20fits=20phones?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The name column took half the table and the other columns were squeezed at the right edge. Now every column except the actions sizes to its content and never wraps. The name is capped at 28rem and truncates with an ellipsis. The actions column takes the slack, so its menu sits at the right edge of the card. Phone widths keep the stacked card layout. --- style/main.scss | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/style/main.scss b/style/main.scss index 94f3298..8318e3c 100644 --- a/style/main.scss +++ b/style/main.scss @@ -4614,10 +4614,11 @@ $ansi-colours: ( } } -// Admin runners table: Name takes the slack and carries the label chips under it; every other column -// sizes to its content so the table fits without sideways scroll. All text is left aligned and th -// and td share one padding, so a header sits over its cell. The row actions live in a menu; its -// panel is absolutely positioned, so the wrapper must not clip it. State reuses `.ci-state`. +// Admin runners table: every column but the actions sizes to its content, and the name is capped and +// truncates with an ellipsis. The actions column takes the slack, so its menu sits at the right edge +// of the card and the other columns stay compact. The label chips sit under the name. All text is +// left aligned and th and td share one padding, so a header sits over its cell. The row actions live +// in a menu; its panel is absolutely positioned, so the wrapper must not clip it. State reuses `.ci-state`. .table-wrap.runners-wrap { overflow: visible; } @@ -4636,6 +4637,8 @@ $ansi-colours: ( padding-right: 0; } + th.runner-name, + td.runner-name, th.runner-conc, td.runner-conc, th.runner-running, @@ -4645,9 +4648,7 @@ $ansi-colours: ( th.runner-seen, td.runner-seen, th.runner-state, - td.runner-state, - th.runner-actions, - td.runner-actions { + td.runner-state { width: 1%; white-space: nowrap; } @@ -4660,18 +4661,19 @@ $ansi-colours: ( td.runner-actions { padding-right: 0; text-align: right; + white-space: nowrap; } - // Name is the one column that wraps: it takes the rest of the width, but never more than half, so - // the compact columns keep their room even on a wide screen. - th.runner-name, + // The name is capped at 28rem and truncates with an ellipsis; the full name is the link text. td.runner-name { - width: 50%; - min-width: 8rem; - overflow-wrap: anywhere; - } + > a { + display: block; + max-width: 28rem; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + } - td.runner-name { .runner-label-list { margin-top: 4px; }