diff --git a/static/dashboard.js b/static/dashboard.js index 6153fa5..2a6bab1 100644 --- a/static/dashboard.js +++ b/static/dashboard.js @@ -55,7 +55,7 @@ function dashChannelNav(m, d, s) { h("button", { class: "small", "data-view-ok": "", "aria-label": t("Next channel"), onclick: () => go(1) }, "›")); } -// link groups in the level meters: the channel numbers of a group sit on one pill, the name below it +// link groups in the level meters: a soft tile in the group colour behind the meters, the name at its top function dashGroups(d, kind) { const out = []; linkedGroups(d, kind).forEach(g => { diff --git a/static/style.css b/static/style.css index 1c6116a..bff1c1f 100644 --- a/static/style.css +++ b/static/style.css @@ -831,12 +831,12 @@ body.ddragging { user-select: none; -webkit-user-select: none; cursor: grabbing; .dmeters { flex: 1; min-height: 0; display: flex; gap: 14px; } .dmgroup { flex: 1 1 0; display: flex; flex-direction: column; gap: 4px; min-width: 0; } .dmgroup .sub { flex: none !important; margin: 0; } -.dms { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr) 18px 0; gap: 0 4px; } -.dmeters.hasnames .dms { grid-template-rows: minmax(0, 1fr) 18px 14px; } -.dms > .dm { grid-row: 1; margin-bottom: 4px; } -.dgrp { grid-row: 2; border-radius: 9px; background: color-mix(in srgb, var(--lc) 18%, transparent); } -.dgrpname { grid-row: 3; align-self: end; min-width: 0; color: var(--lc); font-size: 10px; line-height: 12px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } -.dmlab { grid-row: 2; position: relative; align-self: center; text-align: center; font-size: 11px; font-weight: 700; line-height: 18px; } +.dms { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); grid-template-rows: 5px minmax(0, 1fr) 18px 3px; gap: 0 4px; } +.dmeters.hasnames .dms { grid-template-rows: 15px minmax(0, 1fr) 18px 3px; } +.dms > .dm { grid-row: 2; position: relative; margin-bottom: 3px; } +.dgrp { grid-row: 1 / -1; border-radius: 8px; background: color-mix(in srgb, var(--lc) 13%, transparent); } +.dgrpname { grid-row: 1; position: relative; align-self: center; padding: 0 4px; min-width: 0; color: var(--lc); font-size: 10px; line-height: 12px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } +.dmlab { grid-row: 3; position: relative; align-self: center; text-align: center; font-size: 11px; font-weight: 700; line-height: 18px; } .dm { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; min-height: 0; } .dm .led { flex: 1 1 0; height: auto; min-height: 0; padding: 0; } .dm.muted .led { opacity: .35; }