Commit 7e4121e
committed
fix(#92): header grid — right column gets priority over left's slack
The grid was `1fr auto 1fr`, which gave the left and right columns
an equal share of remaining space regardless of content. On medium-
sized viewports that left wide empty space on the LEFT while the
RIGHT toolbar's per-page controls (selects + buttons) got clipped
because their column couldn't grow past its equal share.
Changed the template to:
minmax(0, 1fr) auto minmax(max-content, 1fr)
- LEFT → `minmax(0, 1fr)`: can absorb all slack OR shrink to 0.
The chip name + breadcrumb may clip on narrow viewports.
- CENTER → `auto`: the search box at its content width, unchanged.
- RIGHT → `minmax(max-content, 1fr)`: its full natural width is the
floor, so it never clips; beyond that it shares free space evenly
with the left so the search stays visually viewport-centered when
there's room.
Behaviour at three sample viewport widths (HAProxy gear, full
toolbar):
3000px left=1332 search=281 right=1332 → search 4px off center
1750px left=633 search=281 right=781 → right at max-content,
left absorbs ~250px slack
1280px left=163 search=281 right=781 → left clips
(chip+breadcrumb truncate)
right stays fully visible
Refs #921 parent 49394d7 commit 7e4121e
1 file changed
Lines changed: 10 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2375 | 2375 | | |
2376 | 2376 | | |
2377 | 2377 | | |
2378 | | - | |
2379 | | - | |
2380 | | - | |
2381 | | - | |
2382 | | - | |
2383 | | - | |
2384 | | - | |
2385 | | - | |
2386 | | - | |
2387 | | - | |
2388 | | - | |
2389 | | - | |
2390 | | - | |
| 2378 | + | |
| 2379 | + | |
| 2380 | + | |
| 2381 | + | |
| 2382 | + | |
| 2383 | + | |
| 2384 | + | |
| 2385 | + | |
| 2386 | + | |
| 2387 | + | |
2391 | 2388 | | |
2392 | 2389 | | |
2393 | 2390 | | |
| |||
0 commit comments