forge
Explore
Log in

Don't you dare go Hollow

The runners table gives each column room and lines its cells up

Browse files at this commit

d8555cef8666b56937b2f1e196f8cc2b79649fabAhmet Kaan GümüşParent: 995ea11
  • fix
    • the runners table gives each column room and lines its cells up
Show full message
🐛 fix: the runners table gives each column room and lines its cells up

Every header and cell now shares one 16px right gap, the last column has none, and cells sit on a common centre line. The commit hash and its pill are separated by a small gap, and Name is capped at half the table width so the compact columns keep their room.
style/main.scssmodified+23 -1
@@ -4495,9 +4495,17 @@ $ansi-colours: (
44954495 }
44964496
44974497 .table.runners {
4498+ // Every header and cell takes the same 16px gap on its right, so each header sits over its
4499+ // content with room to the next column; the last column has none.
44984500 th,
44994501 td {
4500- padding-right: 8px;
4502+ padding: 10px 16px 10px 0;
4503+ vertical-align: middle;
4504+ }
4505+
4506+ th:last-child,
4507+ td:last-child {
4508+ padding-right: 0;
45014509 }
45024510
45034511 th.runner-conc,
@@ -4526,16 +4534,30 @@ $ansi-colours: (
45264534 text-align: right;
45274535 }
45284536
4537+ // Name is the one column that wraps: it takes the rest of the width, but never more than half, so
4538+ // the compact columns keep their room even on a wide screen.
4539+ th.runner-name,
45294540 td.runner-name {
4541+ width: 50%;
45304542 min-width: 8rem;
45314543 overflow-wrap: anywhere;
4544+ }
45324545
4546+ td.runner-name {
45334547 .runner-label-list {
45344548 margin-top: 4px;
45354549 }
45364550 }
45374551
4552+ // The commit hash and its status pill sit on one line with a small gap between them.
4553+ td.runner-build {
4554+ code {
4555+ margin-right: 8px;
4556+ }
4557+ }
4558+
45384559 td.runner-build > *,
4560+ td.runner-conc > *,
45394561 td.runner-state > * {
45404562 vertical-align: middle;
45414563 }