aboutsummaryrefslogtreecommitdiffstats
path: root/static/deck.css
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-11-13 17:44:44 +0100
committerDanilo M. <danix@danix.xyz>2026-11-13 17:44:44 +0100
commitb148d9ad66bd5a1a927409fc9dce73a7f3afd8cd (patch)
treee232ef3317c48ad122641745f3c95f765aa85460 /static/deck.css
parent573f63f72ae66e2765609138e393a96293566184 (diff)
downloaddeck-it-b148d9ad66bd5a1a927409fc9dce73a7f3afd8cd.tar.gz
deck-it-b148d9ad66bd5a1a927409fc9dce73a7f3afd8cd.zip
feat(dashboard): running modules as chips that open a panel
The running row of 118px cards took height from music and spending and cut its lines into marquees. It is now a row of chips (icon, value, progress fill) copied from each module's slot; a tap opens the full slot in a centred <dialog closedby="any">, which a tap outside closes without reaching what is under it, and a tap inside opens the tab. A module may export detail(state, el) for the panel. The build VM's shows the job command, start and elapsed time, CPU, memory and disk as meters, and the plan package by package: its result once finished (progress.results, sbb-remote 0.13.1), building, or waiting. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'static/deck.css')
-rw-r--r--static/deck.css34
1 files changed, 28 insertions, 6 deletions
diff --git a/static/deck.css b/static/deck.css
index b6da4c6..a08f037 100644
--- a/static/deck.css
+++ b/static/deck.css
@@ -705,9 +705,6 @@ select {
background: var(--udt-mantle); border: 1px solid var(--udt-surface1); }
.dash-music { flex: 1; }
.dash-spend { flex: 1.4; display: flex; flex-direction: column; gap: 10px; }
-/* With the running row present the spending card is too short for both
- programs: it scrolls instead of clipping the second one. */
-.dash-mid:has(.dash-running:not([hidden])) .dash-spend { overflow-y: auto; overscroll-behavior: contain; }
.dash-music .music .top { margin-bottom: 6px; }
.dash-music .music .art { width: 52px; height: 52px; border-radius: 10px; }
.dash-music .music .title { font-size: 1rem; }
@@ -733,9 +730,34 @@ select {
.dash .legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.75rem; color: var(--udt-subtext0); }
.dash .legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; background: var(--c); }
-/* The running row: one to three slots in equal columns. A line too long for
- its slot slides to its end and back (dashboard.js sets --d and --t). */
-.dash-running { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 12px; flex: none; height: 118px; }
+/* The running row: one to three chips in equal columns, each opening its
+ slot (and detail) as a centred modal. A line too long for the slot slides to its
+ end and back (dashboard.js sets --d and --t). */
+.dash-running { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; flex: none; height: 52px; }
+.dash-running .chip { cursor: pointer; }
+.dash-running .chip.rec .ic { color: var(--udt-red); }
+.dash-running .chip.busy .fill { width: 30% !important; animation: slot-busy 1.6s ease-in-out infinite alternate; }
+.dash-running .chip .k { margin-left: auto; }
+.dash dialog.run-pop { margin: auto; width: min(760px, 92vw); max-height: 85vh; overflow-y: auto; overscroll-behavior: contain;
+ color: var(--udt-text); padding: 16px 20px; }
+.dash dialog.run-pop[open] { display: flex; flex-direction: column; gap: 14px; }
+.dash dialog.run-pop::backdrop { background: color-mix(in srgb, var(--udt-crust) 55%, transparent); }
+.dash .run-pop .slot { flex: none; height: 96px; padding: 0; }
+.dash .run-pop .detail { display: flex; flex-direction: column; gap: 6px; font-size: 0.857rem; }
+.dash .run-pop .detail:empty { display: none; }
+.dash .run-pop .dl { display: flex; gap: 12px; }
+.dash .run-pop .dl .k { flex: none; width: 3rem; font-size: 0.714rem; text-transform: uppercase; letter-spacing: .08em; color: var(--udt-overlay1); padding-top: .15em; }
+.dash .run-pop .dl .v { color: var(--udt-subtext0); }
+.dash .run-pop .vm { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
+.dash .run-pop .vm .chip { height: 60px; }
+.dash .run-pop .plan { margin: 6px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 16px; }
+.dash .run-pop .plan li { display: flex; gap: 8px; padding: 4px 8px; border-radius: 8px; background: var(--udt-surface0); }
+.dash .run-pop .plan .pn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
+.dash .run-pop .plan .ps { flex: none; font-size: 0.786rem; color: var(--udt-overlay1); }
+.dash .run-pop .plan .ok .ps { color: var(--udt-green); }
+.dash .run-pop .plan .failed .ps, .dash .run-pop .plan .aborted .ps { color: var(--udt-red); }
+.dash .run-pop .plan .building { outline: 1px solid var(--udt-accent); }
+.dash .run-pop .plan .building .ps { color: var(--udt-accent); }
.dash .slot { container: slot / inline-size; display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto 1fr;
column-gap: 14px; row-gap: 4px; align-items: center; padding: 10px 16px 12px; cursor: pointer; }
.dash .slot .sic { grid-column: 1; grid-row: 1 / 3; font-size: 1.9rem; width: 2.4rem; color: var(--udt-accent); }