diff options
| author | Danilo M. <danix@danix.xyz> | 2026-11-11 11:56:25 +0100 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-11-11 11:56:25 +0100 |
| commit | e2c1f93088b945dae6f6ab0f66bd60842e9049dc (patch) | |
| tree | 86d632b703b389fef64f1ffdf00eaf4e52611b8a /static | |
| parent | 8ba4e93dbfc4f0499f8a34beadeffb638d3e7e48 (diff) | |
| download | deck-it-e2c1f93088b945dae6f6ab0f66bd60842e9049dc.tar.gz deck-it-e2c1f93088b945dae6f6ab0f66bd60842e9049dc.zip | |
fix(dashboard): keep chip columns from growing with their text
A plain 1fr track has a min-content floor, so the nowrap CPU and GPU
names and the network rates widened their columns past the viewport.
minmax(0, ...) pins each chip to its share; network keeps a bit more.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'static')
| -rw-r--r-- | static/deck.css | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/static/deck.css b/static/deck.css index 594bd80..3abb7e7 100644 --- a/static/deck.css +++ b/static/deck.css @@ -654,8 +654,8 @@ select { .dash-id b { color: var(--udt-text); font-weight: 600; } .dash-id .sep { color: var(--udt-border-1); font-weight: 600; } .dash .chips { display: grid; gap: 8px; min-height: 0; } -.dash .chips.sys { grid-template-columns: 1fr 1fr 1fr 1.3fr; } -.dash .chips.aux { grid-template-columns: 1fr 1fr 1fr 1fr 1.3fr; } +.dash .chips.sys { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.2fr); } +.dash .chips.aux { grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.3fr); } .dash .chip { position: relative; overflow: hidden; border-radius: 10px; background: var(--udt-surface0); border: 1px solid var(--udt-surface1); display: flex; align-items: center; gap: 10px; padding: 0 14px; min-width: 0; } .dash .chip.hot { border-color: var(--udt-accent); } |
