The runners table gives each column room and lines its cells up
Browse files at this commitd8555cef8666b56937b2f1e196f8cc2b79649fabParent: 995ea11- fix
- the runners table gives each column room and lines its cells up
1 changed file +23 -1
- style/main.scss +23 -1
style/main.scssmodified+23 -1
| @@ -4495,9 +4495,17 @@ $ansi-colours: ( | |||
| 4495 | } | 4495 | } |
| 4496 | 4496 | ||
| 4497 | .table.runners { | 4497 | .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. | ||
| 4498 | th, | 4500 | th, |
| 4499 | td { | 4501 | 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; | ||
| 4501 | } | 4509 | } |
| 4502 | 4510 | ||
| 4503 | th.runner-conc, | 4511 | th.runner-conc, |
| @@ -4526,16 +4534,30 @@ $ansi-colours: ( | |||
| 4526 | text-align: right; | 4534 | text-align: right; |
| 4527 | } | 4535 | } |
| 4528 | 4536 | ||
| 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, | ||
| 4529 | td.runner-name { | 4540 | td.runner-name { |
| 4541 | + width: 50%; | ||
| 4530 | min-width: 8rem; | 4542 | min-width: 8rem; |
| 4531 | overflow-wrap: anywhere; | 4543 | overflow-wrap: anywhere; |
| 4544 | + } | ||
| 4532 | 4545 | ||
| 4546 | + td.runner-name { | ||
| 4533 | .runner-label-list { | 4547 | .runner-label-list { |
| 4534 | margin-top: 4px; | 4548 | margin-top: 4px; |
| 4535 | } | 4549 | } |
| 4536 | } | 4550 | } |
| 4537 | 4551 | ||
| 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 | + | ||
| 4538 | td.runner-build > *, | 4559 | td.runner-build > *, |
| 4560 | + td.runner-conc > *, | ||
| 4539 | td.runner-state > * { | 4561 | td.runner-state > * { |
| 4540 | vertical-align: middle; | 4562 | vertical-align: middle; |
| 4541 | } | 4563 | } |