From a02e5dd53ee4b05c28f4d98a01e66ab00720b54e Mon Sep 17 00:00:00 2001 From: Givou Date: Mon, 2 Nov 2026 17:56:34 +0100 Subject: [PATCH] Limiter tab: limiter LED dot next to the Channel button Co-Authored-By: Claude Opus 5.5 --- static/app.js | 4 ++-- static/style.css | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/static/app.js b/static/app.js index c1ce37d..840e5f3 100644 --- a/static/app.js +++ b/static/app.js @@ -553,7 +553,7 @@ const limitOn = new Map(); // "dev|idx" -> time it was last reported active let limEls = []; const LIM_HOLD = 300; // ms an LED stays lit, so short hits are visible const limLed = (devId, i, cls = "") => h("span", { class: "limled " + cls, "data-lim": `${devId}|${i}`, title: t("Limiter active"), "aria-hidden": "true" }, - cls ? "LIM" : null); + cls && cls !== "dot" ? "LIM" : null); function updateMeters(ev) { for (const kind of ["in", "out"]) @@ -1898,7 +1898,7 @@ function limiterCard(d, o) { ] : []; const card = h("div", { class: "card limcard" }, - h("h3", {}, h("span", { class: "grow" }, chTitle(d, "out", o)), ledMeter(d.id, "out", o, "h"), + h("h3", {}, h("span", { class: "grow" }, chTitle(d, "out", o)), ledMeter(d.id, "out", o, "h"), limLed(d.id, o, "dot"), h("button", { class: "small", onclick: () => openChannel("out", o) }, t("Channel"))), res, h("div", { class: "limgrid" }, diff --git a/static/style.css b/static/style.css index 75d71ea..f1fd21d 100644 --- a/static/style.css +++ b/static/style.css @@ -467,6 +467,9 @@ body.locked #statusbar :is(button, select):not([data-view-ok]) { cursor: not-all .limled { flex: none; display: block; width: 34px; height: 4px; margin-top: 3px; border-radius: 1px; background: color-mix(in srgb, var(--led-o) 16%, transparent); transition: background .08s, box-shadow .08s; } .limled.ph { visibility: hidden; } +.limled.dot { width: 9px; height: 9px; margin: 0 8px 0 4px; border-radius: 50%; } +.limcard h3 > .grow { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } +.limcard h3 .led.h { width: 96px; } .limled.txt { width: auto; height: auto; margin: 1px 0 0; background: none; font-size: 9px; line-height: 11px; font-weight: 800; letter-spacing: .08em; color: color-mix(in srgb, var(--led-o) 22%, transparent); transition: color .08s; } .limled.txt.on { background: none; box-shadow: none; color: var(--led-o); text-shadow: 0 0 5px color-mix(in srgb, var(--led-o) 55%, transparent); }