DSP drop-down: clear chevron icon that flips when open

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
GivouandClaude Opus 5.5 committed 2026-11-01 23:02:05 +01:00
1 parent f87e6cad70
commit 3a85f62225
2 files changed
+7 -2

No files matched your search

+1 -1
View File
@@ -553,7 +553,7 @@ function renderTabs() {
onclick: e => { e.stopPropagation(); S.devMenu = !S.devMenu; renderTabs(); } },
h("span", { class: "dot " + cur.status }), h("span", { class: "dn" }, cur.name), badge(cur),
others.length ? h("span", { class: "minidots", "aria-hidden": "true" }, others.map(id => h("i", { class: "dot " + S.devices[id].status }))) : null,
h("span", { class: "chev" }, S.devMenu ? "▴" : "▾"));
h("span", { class: "chev" + (S.devMenu ? " open" : "") }, svgIcon('<path d="M6 9l6 6 6-6"/>')));
const menu = S.devMenu ? h("div", { class: "devmenu", role: "listbox" }, order.map(id => {
const d = S.devices[id], paused = S.demo.enabled && !d.demo; // demo mode: the real DSPs are disconnected
return h("button", { class: "devitem" + (id === S.cur ? " on" : "") + (paused ? " paused" : ""), role: "option", "aria-selected": String(id === S.cur),
+6 -1
View File
@@ -588,7 +588,12 @@ button.swatch.big:disabled { opacity: .25; cursor: not-allowed;
/* ---- DSP drop-down */
.devpick { max-width: 320px; gap: 8px; }
.devpick .chev { color: var(--dim); font-size: 11px; margin-left: 2px; }
.devpick .chev { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin: -4px -4px -4px 2px;
border-radius: 6px; background: var(--panel3); color: var(--text); }
.devpick .chev svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
transition: transform .15s; }
.devpick .chev.open svg { transform: rotate(180deg); }
.devpick:hover .chev { background: var(--accent); color: #06121c; }
.devpick .minidots { display: inline-flex; gap: 3px; margin-left: 2px; padding-left: 8px; border-left: 1px solid var(--line); }
.devpick .minidots .dot { width: 6px; height: 6px; box-shadow: none; animation: none; }
.devmenu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 60; min-width: 280px; max-width: min(420px, 92vw);