diff options
| author | Danilo M. <danix@danix.xyz> | 2026-11-12 19:07:11 +0100 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-11-12 19:07:11 +0100 |
| commit | 7ac7a0326387012b1aad6ebc692c26b5620289b4 (patch) | |
| tree | ea6dc5b7ac0b0396540a0282cfb0bd091713b50a /static/deck.css | |
| parent | 53c4a434a8587a531c288e98875ab76c180d376a (diff) | |
| download | deck-it-7ac7a0326387012b1aad6ebc692c26b5620289b4.tar.gz deck-it-7ac7a0326387012b1aad6ebc692c26b5620289b4.zip | |
fix(dashboard): stroke only the top of the chip graphs
The CPU, GPU and network graphs stroked their closed area path, so the
outline also ran along the bottom edge and up the left side while the
history filled. Each series is now a filled area and an open line
through the samples, and only the line is stroked.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'static/deck.css')
| -rw-r--r-- | static/deck.css | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/static/deck.css b/static/deck.css index 74cf147..b6d2202 100644 --- a/static/deck.css +++ b/static/deck.css @@ -672,8 +672,11 @@ select { .dash .chip svg, .dash .chip .fill { position: absolute; inset: 0; pointer-events: none; } .dash .chip svg { width: 100%; height: 100%; } .dash .chip svg path { stroke-width: 1.5; vector-effect: non-scaling-stroke; } -.dash .chip svg path.hy { fill: url(#hyfill); stroke: url(#hyline); } -.dash .chip svg path.up { fill: color-mix(in srgb, var(--udt-text) 8%, transparent); stroke: color-mix(in srgb, var(--udt-text) 30%, transparent); } +.dash .chip svg path.hy { fill: url(#hyfill); } +.dash .chip svg path.up { fill: color-mix(in srgb, var(--udt-text) 8%, transparent); } +.dash .chip svg path.ln { fill: none; } +.dash .chip svg path.hy.ln { stroke: url(#hyline); } +.dash .chip svg path.up.ln { stroke: color-mix(in srgb, var(--udt-text) 30%, transparent); } .dash .chip .fill { right: auto; width: 0; background: color-mix(in srgb, var(--udt-accent) 20%, transparent); transition: width .4s; } /* Charging: streaks rain right to left into the fill's edge. The strip sits past the fill and the chip's overflow clips it; each layer moves a whole tile per |
