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; }