fix(hub): the radio Channel select never clips its widest option
🧪 Test / 🧪 Lock + lint (push) Canceled after 0s

At 768x1024 in Chromium the composer showed Pos instead of Post: both composer labels flex as 1 1 0 with min-width 0, so the Channel select shrank below its content. The Channel label now carries composer-channel with min-width max-content. The six-state radio layout probe measures the select against a hidden max-content twin in every state: on the old CSS 36 subtests fail (60 of 104 px at 768x1024 with a voice note, also 800x976 and 820x1180), with the fix the Chromium test is green and the select holds 104 of 104 px. The Firefox radio layout tests did not run on this change.

🎯 Fix: 97 %
💥 Break: 4 %
💸 Tokens: –
⏱️ Velocity: –
🛡️ Security: 100 %
🏆 Score: 93
🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 %

Created-with: https://s.veen.world/skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Kevin Veen-BirkenbachandClaude Opus 5.5 committed 2026-11-26 11:14:35 +00:00
1 parent 156e9a1e83
commit 3cf718e42c
4 files changed
+12 -1

No files matched your search

+9
View File
@@ -276,6 +276,15 @@ SPOT = """(async () => {@HELPERS@@PROBES@@SPEAKING@
const hit = document.elementFromPoint(edge.left + edge.width / 2, edge.top + edge.height / 2);
return {height: Math.round(box(node).height), title: words.title, full: words.textContent, cut: words.scrollWidth > words.clientWidth + 1, cancel: Boolean(hit && cancel.contains(hit))};
})(),
channel: (() => {
const select = form.querySelector(".composer-grid select");
const twin = select.cloneNode(true);
twin.style.cssText = "position: absolute; visibility: hidden; width: max-content; min-width: 0;";
select.after(twin);
const need = box(twin).width;
twin.remove();
return [Math.round(box(select).width), Math.round(need)];
})(),
play: [note.querySelector(".voice-play"), note.querySelector("audio")].filter((node) => node && shown(node) && box(node).width > 0).map((node) => [node.tagName, Math.round(box(node).width), Math.round(box(node).height)]),
line: (() => {
const node = display.querySelector(".caption-line");