diff --git a/static/app.js b/static/app.js index d4c4ae9..c392fce 100644 --- a/static/app.js +++ b/static/app.js @@ -1537,7 +1537,7 @@ function viewRouting(d) { onclick: () => { const m = chans(dev(), "out")[o].matrix ^ (1 << i); setParam("out", o, "matrix", m); render(); - } }, h("span", { class: "node" }), on ? h("small", {}, gainDb(oc.mix[i]) === 0 ? "0 dB" : sign(gainDb(oc.mix[i]))) : null)); + } }, h("span", { class: "node" }), on ? h("small", { title: `${sign(gainDb(oc.mix[i]))} dB` }, gainDb(oc.mix[i]) === 0 ? "0" : sign(gainDb(oc.mix[i]))) : null)); }); if (open) grid.append(h("div", { class: "xpanel" }, h("div", { class: "xpanel-h" }, t("Level for {ch}", { ch: chTitle(d, "out", o) }), h("button", { class: "small", onclick: () => openChannel("out", o) }, t("Open channel"))), mixList(d, o))); diff --git a/static/style.css b/static/style.css index 6dc4849..5bbdca7 100644 --- a/static/style.css +++ b/static/style.css @@ -963,3 +963,7 @@ body.dashonly .dlink { cursor: default; } 85% { opacity: .5; } 92%, 100% { background-position: 0% 0, 100% 0; opacity: 0; } } @media (prefers-reduced-motion: reduce) { .xp.on::before, .xp.on::after { animation: none; } } +/* level of a connection inside its point */ +.xp.on .node { width: 36px; height: 36px; border-width: 2px; transform: none; } +.xp.on small { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; pointer-events: none; + font-size: 10px; font-weight: 700; letter-spacing: -.02em; color: #0b0c0f; }