Network as a regular resources cell next to Disk, with two stacked bar-sized graphs

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
neil 2026-10-26 10:41:58 -07:00
parent 3ae03160e8
commit a963dc1bf4
No known key found for this signature in database
3 changed files with 12 additions and 11 deletions

View file

@ -75,20 +75,22 @@ header { display: flex; justify-content: space-between; align-items: center; gap
a { color: var(--accent); }
/* resources */
.meters { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.meter-label { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 4px; }
.meters { display: grid; grid-template-columns: repeat(4, 1fr) 1.4fr; gap: 14px; }
@media (max-width: 900px) { .meters { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); } }
.meter-label { display: flex; justify-content: space-between; gap: 8px; white-space: nowrap; font-size: 13px; margin-bottom: 4px; }
.meter-label span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.bar { height: 8px; background: var(--bar); border-radius: 4px; overflow: hidden; }
.bar > div { height: 100%; width: 0; background: var(--ok); transition: width .5s, background .5s; }
.net-meter { grid-column: 1 / -1; }
.graph { display: block; width: 100%; height: 24px; background: var(--bar); border-radius: 4px; }
.graph { display: block; width: 100%; height: 12px; background: var(--bar); border-radius: 4px; }
.graph + .graph { margin-top: 3px; }
.graph .line { fill: none; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.graph .area { stroke: none; opacity: .25; }
.graph.rx .line { stroke: var(--ok); }
.graph.rx .area { fill: var(--ok); }
.graph.tx .line { stroke: #79c0ff; }
.graph.tx .area { fill: #79c0ff; }
.graph-gap { margin-top: 8px; }
.meter-label .rx { color: var(--ok); }
.meter-label .tx { color: #79c0ff; }
.section-title { margin: 24px 0 12px; }
.empty { color: var(--muted); text-align: center; padding: 24px; }