diff --git a/static/app.js b/static/app.js index 5883131..0ae4363 100644 --- a/static/app.js +++ b/static/app.js @@ -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(''))); 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), diff --git a/static/style.css b/static/style.css index cacba72..5680396 100644 --- a/static/style.css +++ b/static/style.css @@ -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);