forge
Explore
Log in

Don't you dare go Hollow

Admin runners table sizes its columns and fits phones

Browse files at this commit

c0262101ff907fb435ef52178232d951e143f028Ahmet Kaan GümüşParent: 92c7e69
  • style
    • admin runners table sizes its columns and fits phones
Show full message
💄 style: admin runners table sizes its columns and fits phones

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.scssmodified+17 -15
@@ -4614,10 +4614,11 @@ $ansi-colours: (
46144614 }
46154615 }
46164616
4617-// Admin runners table: Name takes the slack and carries the label chips under it; every other column
4618-// sizes to its content so the table fits without sideways scroll. All text is left aligned and th
4619-// and td share one padding, so a header sits over its cell. The row actions live in a menu; its
4620-// panel is absolutely positioned, so the wrapper must not clip it. State reuses `.ci-state`.
4617+// Admin runners table: every column but the actions sizes to its content, and the name is capped and
4618+// truncates with an ellipsis. The actions column takes the slack, so its menu sits at the right edge
4619+// of the card and the other columns stay compact. The label chips sit under the name. All text is
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`.
46214622 .table-wrap.runners-wrap {
46224623 overflow: visible;
46234624 }
@@ -4636,6 +4637,8 @@ $ansi-colours: (
46364637 padding-right: 0;
46374638 }
46384639
4640+ th.runner-name,
4641+ td.runner-name,
46394642 th.runner-conc,
46404643 td.runner-conc,
46414644 th.runner-running,
@@ -4645,9 +4648,7 @@ $ansi-colours: (
46454648 th.runner-seen,
46464649 td.runner-seen,
46474650 th.runner-state,
4648- td.runner-state,
4649- th.runner-actions,
4650- td.runner-actions {
4651+ td.runner-state {
46514652 width: 1%;
46524653 white-space: nowrap;
46534654 }
@@ -4660,18 +4661,19 @@ $ansi-colours: (
46604661 td.runner-actions {
46614662 padding-right: 0;
46624663 text-align: right;
4664+ white-space: nowrap;
46634665 }
46644666
4665- // Name is the one column that wraps: it takes the rest of the width, but never more than half, so
4666- // the compact columns keep their room even on a wide screen.
4667- th.runner-name,
4667+ // The name is capped at 28rem and truncates with an ellipsis; the full name is the link text.
46684668 td.runner-name {
4669- width: 50%;
4670- min-width: 8rem;
4671- overflow-wrap: anywhere;
4672- }
4669+ > a {
4670+ display: block;
4671+ max-width: 28rem;
4672+ overflow: hidden;
4673+ text-overflow: ellipsis;
4674+ white-space: nowrap;
4675+ }
46734676
4674- td.runner-name {
46754677 .runner-label-list {
46764678 margin-top: 4px;
46774679 }