Admin runners table sizes its columns and fits phones
Browse files at this commitc0262101ff907fb435ef52178232d951e143f028Parent: 92c7e69- style
- admin runners table sizes its columns and fits phones
1 changed file +17 -15
- style/main.scss +17 -15
style/main.scssmodified+17 -15
| @@ -4614,10 +4614,11 @@ $ansi-colours: ( | |||
| 4614 | } | 4614 | } |
| 4615 | } | 4615 | } |
| 4616 | 4616 | ||
| 4617 | -// Admin runners table: Name takes the slack and carries the label chips under it; every other column | 4617 | +// Admin runners table: every column but the actions sizes to its content, and the name is capped and |
| 4618 | -// sizes to its content so the table fits without sideways scroll. All text is left aligned and th | 4618 | +// truncates with an ellipsis. The actions column takes the slack, so its menu sits at the right edge |
| 4619 | -// and td share one padding, so a header sits over its cell. The row actions live in a menu; its | 4619 | +// of the card and the other columns stay compact. The label chips sit under the name. All text is |
| 4620 | -// panel is absolutely positioned, so the wrapper must not clip it. State reuses `.ci-state`. | 4620 | +// left aligned and th and td share one padding, so a header sits over its cell. The row actions live |
| 4621 | +// in a menu; its panel is absolutely positioned, so the wrapper must not clip it. State reuses `.ci-state`. | ||
| 4621 | .table-wrap.runners-wrap { | 4622 | .table-wrap.runners-wrap { |
| 4622 | overflow: visible; | 4623 | overflow: visible; |
| 4623 | } | 4624 | } |
| @@ -4636,6 +4637,8 @@ $ansi-colours: ( | |||
| 4636 | padding-right: 0; | 4637 | padding-right: 0; |
| 4637 | } | 4638 | } |
| 4638 | 4639 | ||
| 4640 | + th.runner-name, | ||
| 4641 | + td.runner-name, | ||
| 4639 | th.runner-conc, | 4642 | th.runner-conc, |
| 4640 | td.runner-conc, | 4643 | td.runner-conc, |
| 4641 | th.runner-running, | 4644 | th.runner-running, |
| @@ -4645,9 +4648,7 @@ $ansi-colours: ( | |||
| 4645 | th.runner-seen, | 4648 | th.runner-seen, |
| 4646 | td.runner-seen, | 4649 | td.runner-seen, |
| 4647 | th.runner-state, | 4650 | th.runner-state, |
| 4648 | - td.runner-state, | 4651 | + td.runner-state { |
| 4649 | - th.runner-actions, | ||
| 4650 | - td.runner-actions { | ||
| 4651 | width: 1%; | 4652 | width: 1%; |
| 4652 | white-space: nowrap; | 4653 | white-space: nowrap; |
| 4653 | } | 4654 | } |
| @@ -4660,18 +4661,19 @@ $ansi-colours: ( | |||
| 4660 | td.runner-actions { | 4661 | td.runner-actions { |
| 4661 | padding-right: 0; | 4662 | padding-right: 0; |
| 4662 | text-align: right; | 4663 | text-align: right; |
| 4664 | + white-space: nowrap; | ||
| 4663 | } | 4665 | } |
| 4664 | 4666 | ||
| 4665 | - // Name is the one column that wraps: it takes the rest of the width, but never more than half, so | 4667 | + // The name is capped at 28rem and truncates with an ellipsis; the full name is the link text. |
| 4666 | - // the compact columns keep their room even on a wide screen. | ||
| 4667 | - th.runner-name, | ||
| 4668 | td.runner-name { | 4668 | td.runner-name { |
| 4669 | - width: 50%; | 4669 | + > a { |
| 4670 | - min-width: 8rem; | 4670 | + display: block; |
| 4671 | - overflow-wrap: anywhere; | 4671 | + max-width: 28rem; |
| 4672 | - } | 4672 | + overflow: hidden; |
| 4673 | + text-overflow: ellipsis; | ||
| 4674 | + white-space: nowrap; | ||
| 4675 | + } | ||
| 4673 | 4676 | ||
| 4674 | - td.runner-name { | ||
| 4675 | .runner-label-list { | 4677 | .runner-label-list { |
| 4676 | margin-top: 4px; | 4678 | margin-top: 4px; |
| 4677 | } | 4679 | } |