Dashboard: modular read-only overview page, stored in the config; UI cleanup

Modules are added and moved by drag and drop. Cleanup: no sideways jump between
pages, mixer strips stay together with few channels, equal card heights, compact
limiter cards without an amplifier, wider test meters, scrollable bottom bar.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
GivouandClaude Opus 5.5 committed 2026-11-02 17:23:36 +01:00
1 parent 5597fae3f3
commit 2ea9fa32bc
8 files changed
+502 -19

No files matched your search

+92 -6
View File
@@ -109,7 +109,9 @@ body[data-view=settings] #viewtabs button.active { background: none; color: var(
position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; border-radius: 0; border: 0; border-top: 1px solid var(--line);
padding: 4px 6px env(safe-area-inset-bottom); background: rgba(16, 18, 22, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
#viewtabs button { flex: 1; flex-direction: column; gap: 2px; font-size: 11px; min-height: 54px; padding: 4px; }
#viewtabs { overflow-x: auto; scrollbar-width: none; }
#viewtabs::-webkit-scrollbar { display: none; }
#viewtabs button { flex: 1 0 60px; flex-direction: column; gap: 2px; font-size: 11px; min-height: 54px; padding: 4px; }
#viewtabs button svg { width: 22px; height: 22px; }
#toast { bottom: calc(var(--bnav) + 12px) !important; }
}
@@ -119,7 +121,8 @@ body[data-view=settings] #viewtabs button.active { background: none; color: var(
.card h3 { margin: 0 0 12px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim);
display: flex; align-items: center; gap: 8px; min-height: 22px; }
.grow { flex: 1; }
.cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: start; margin-bottom: 10px; }
html { scrollbar-gutter: stable; }
.cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: stretch; margin-bottom: 10px; }
.cards .wide { grid-column: 1 / -1; }
h2.section { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); margin: 14px 2px 8px; }
.empty { color: var(--dim); text-align: center; padding: 60px 16px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
@@ -229,7 +232,7 @@ input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius:
button.mute.on { background: var(--mute); border-color: #f87171; color: #fff; box-shadow: 0 0 10px #dc262655; }
.strip.muted { background: linear-gradient(#1f1517, var(--bg2)); }
@media (min-width: 1200px) {
.mgroup { flex-shrink: 1; flex-basis: 0; }
.mgroup { flex: 0 1 auto !important; }
.strips { grid-template-columns: repeat(var(--n), minmax(92px, 128px)); }
.strip { width: auto; max-width: 128px; }
}
@@ -382,7 +385,9 @@ canvas.curve { width: 100%; height: clamp(200px, 32vw, 320px); display: block; b
.lw small { font-size: 14px; font-weight: 500; color: var(--dim); }
.lsub { font-size: 13px; color: var(--dim); margin-top: 2px; }
.lbar { position: relative; height: 8px; border-radius: 4px; background: var(--panel3); margin: 10px 0 4px; }
.lres.none .lbar { display: none; }
.lres.none .lbar, .lres.none .lw, .lres.none .lnotes { display: none; }
.lres.none { padding: 7px 10px; }
.lres.none .lsub { margin: 0; }
.lbar i { position: absolute; inset: 0 auto 0 0; width: calc(var(--p) * 100%); border-radius: 4px; background: var(--c); transition: width .15s; }
.lbar b, .lbar::after { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--text); left: calc(var(--a) * 100% - 1px); }
.lbar::after { content: ""; display: none; background: var(--warn); left: calc(var(--s) * 100% - 1px); }
@@ -507,8 +512,8 @@ input.code { width: 7.5em; text-align: center; font-family: ui-monospace, Menlo,
.tf .fader { height: 300px; }
.testval { white-space: nowrap; width: 6.5em; text-align: center; font-size: 18px; font-weight: 500; font-variant-numeric: tabular-nums; }
.tf { flex: none; width: 6.5em; }
.tmeters { display: flex; gap: 6px; overflow-x: auto; min-width: 0; padding-bottom: 4px; }
.tmeter { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: none; }
.tmeters { flex: 1; display: flex; gap: 6px; overflow-x: auto; min-width: 0; padding-bottom: 4px; }
.tmeter { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1 0 auto; max-width: 120px; }
.tmeter .led { height: 300px; }
.testfader h3 .info { margin-left: 8px; text-transform: none; letter-spacing: 0; font-weight: 400; }
.tmeter small { font-size: 11px; color: var(--dim); }
@@ -762,3 +767,84 @@ input[type=range].haslim::-moz-range-track {
.firch.on small { color: #dbeafe; }
.firform { margin-bottom: 8px; }
canvas.fircurve { display: block; width: 100%; height: 240px; background: var(--bg2); border-radius: 8px; }
/* ---- dashboard */
.dhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 0 10px; }
.dhead h2 { margin: 0; font-size: 20px; }
.dash { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-flow: dense; gap: 10px; align-items: stretch; }
.dmod { min-width: 0; display: flex; flex-direction: column; }
.dmod[hidden] { display: none; }
.w3 { grid-column: span 3; } .w4 { grid-column: span 4; } .w6 { grid-column: span 6; } .w8 { grid-column: span 8; } .w12 { grid-column: span 12; }
@media (max-width: 1100px) { .w3, .w4 { grid-column: span 6; } .w6, .w8 { grid-column: span 12; } }
@media (max-width: 759px) { .dmod.w3, .dmod.w4, .dmod.w6, .dmod.w8 { grid-column: span 12; } .dhelp { display: none; } }
.dmod > h3 svg { width: 15px; height: 15px; flex: none; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dtitle { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ddev { flex: none; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--dim); font-size: 11px; font-weight: 400; text-transform: none; letter-spacing: 0; }
.dctl { display: flex; gap: 3px; flex: none; }
.dctl button { min-height: 26px; min-width: 26px; padding: 0 6px; text-transform: none; letter-spacing: 0; }
.dgrip { cursor: grab; touch-action: none; }
.dash.editing .dmod { border-style: dashed; border-color: var(--line2, #3a4250); }
.dempty { margin: auto; text-align: center; padding: 16px 4px; }
.dblank { padding: 40px 12px; text-align: center; color: var(--dim); }
.dpalette { margin-bottom: 10px; }
.dpalette h3 { margin-bottom: 8px; }
.dhelp { margin: 0; text-transform: none; letter-spacing: 0; font-weight: 400; }
.dchips { display: flex; flex-wrap: wrap; gap: 6px; }
.dchip { gap: 6px; min-height: 34px; padding: 4px 11px; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.dchip svg { width: 15px; height: 15px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dph { min-height: 110px; border: 2px dashed var(--accent); border-radius: var(--radius); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.dghost { position: fixed; left: 0; top: 0; z-index: 90; margin: 0; pointer-events: none; opacity: .85; max-height: 240px; overflow: hidden; box-shadow: 0 12px 30px #000a; }
body.ddragging { user-select: none; -webkit-user-select: none; cursor: grabbing; }
.dlist { display: flex; flex-direction: column; gap: 4px; }
.dlist hr { width: 100%; margin: 4px 0; border: 0; border-top: 1px solid var(--line); }
.drow { display: flex; align-items: center; gap: 8px; min-height: 26px; font-size: 13px; min-width: 0; }
.dlink { width: 100%; justify-content: flex-start; min-height: 42px; padding: 5px 9px; text-align: left; font-weight: 400; background: var(--panel2); }
.dname { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.dname b, .dname small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dname small { color: var(--dim); font-size: 11px; }
.dtag { flex: none; padding: 1px 6px; border-radius: 5px; font-size: 10px; font-weight: 700; letter-spacing: .05em; }
.dtag.mute { color: #fff; background: var(--mute); }
.dlab { flex: none; min-width: 3.1em; color: var(--dim); font-size: 12px; }
.dsub { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--dim); font-size: 12px; }
.dval { flex: none; min-width: 3.4em; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; font-size: 12px; }
.dbar { --cc: var(--accent); flex: 1; position: relative; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; min-width: 30px; }
.dbar i { position: absolute; inset: 0 auto 0 0; background: var(--cc); opacity: .85; }
.dbar u { position: absolute; left: 70%; top: 0; bottom: 0; width: 1px; background: #ffffff66; }
.dgain.muted .dbar i { background: var(--dim); opacity: .4; }
.dgain.muted .dval { color: #f87171; font-size: 10px; }
.drow.zero { opacity: .5; }
.dmeters { flex: 1; display: flex; gap: 18px; flex-wrap: wrap; }
.dmgroup { flex: 1 1 0; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dmgroup .sub { margin: 0; }
.dms { display: flex; gap: 6px; }
.dm { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 20px; flex: 1 1 0; max-width: 60px; }
.dm .led { height: 150px; }
.dm small { color: var(--dim); font-size: 11px; }
.dm.muted .led { opacity: .35; }
.dm .limled { width: 18px; height: 4px; min-height: 4px; margin: 0; font-size: 0; }
.dnav { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.dnav button { min-height: 28px; min-width: 32px; padding: 0 8px; font-size: 16px; line-height: 1; }
.dnavname { flex: 1; min-width: 0; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--dim); }
.dnavname b { color: var(--text); }
canvas.dcurve { display: block; width: 100%; height: 170px; background: var(--bg2); border-radius: 8px; }
.dmod.w12 canvas.dcurve, .dmod.w8 canvas.dcurve { height: 200px; }
.dbands { display: flex; gap: 3px; margin-top: 6px; overflow-x: auto; }
.dband { flex: 1 0 34px; flex-direction: column; gap: 0; min-height: 34px; padding: 2px; font-weight: 400; background: var(--panel2); }
.dband b { font-size: 12px; }
.dband small { color: var(--dim); font-size: 10px; }
.dband.act b { color: var(--accent); }
.dband.off { opacity: .45; }
.dband.on { border-color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, var(--panel2)); }
.dbandinfo { margin: 6px 2px 0; min-height: 1.3em; }
.dkvs { display: flex; flex-direction: column; }
.dkv { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.dkv:last-child { border-bottom: 0; }
.dkv span { color: var(--dim); flex: none; }
.dkv b { font-weight: 600; text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dkv.bad b { color: #f87171; }
.dmatrix { display: grid; grid-template-columns: minmax(3.4em, auto) repeat(var(--n), minmax(16px, 1fr)); gap: 4px 3px; align-items: center; justify-items: center; font-size: 12px; }
.dmatrix span { justify-self: start; color: var(--dim); white-space: nowrap; }
.dmatrix b { font-size: 11px; }
.dmatrix i { width: 12px; height: 12px; border-radius: 50%; background: var(--line); }
.dmatrix i.on { background: var(--c); box-shadow: 0 0 6px var(--c); }
.dnote { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.45; }
.dform textarea { width: 100%; resize: vertical; min-height: 110px; font: inherit; }