From 495ada49a7540367e6efa4abbd1d01a846edeba8 Mon Sep 17 00:00:00 2001 From: yetone Date: Wed, 18 Nov 2026 05:21:03 +0800 Subject: [PATCH] =?UTF-8?q?usage:=20the=20speed=20card's=20Check=E2=80=A6?= =?UTF-8?q?=20shows=20without=20hover=20(skingstyle48487=20on=20X)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit skingstyle48487 couldn't find Check… on the Model speed › Providers rows: with a mouse it showed only while the row was pointed at. It now always shows, in the muted colour, and takes the control colour when its row is pointed at or it has focus. No new label. Run (mote): usage-model-speed.test.cjs, chromium and webkit, five languages: 12/12. Broken by hand: the test with the old app.css is red in both engines ("Check… shows without hover"). --- internal/gui/assets/app.css | 8 ++++---- internal/gui/tests/usage-model-speed.test.cjs | 5 +++++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/internal/gui/assets/app.css b/internal/gui/assets/app.css index 3ba3a594c..28dba5688 100644 --- a/internal/gui/assets/app.css +++ b/internal/gui/assets/app.css @@ -1628,10 +1628,10 @@ body.masked :hover > .acct-eye, body.masked .pq-card:hover .acct-eye, body.maske .led-spd.by-prov td.nm { min-width: 112px; } .led-spd th.act, .led-spd td.act { width: 1px; padding-left: 8px; } .led-spd td.off { color: var(--amber); } -.led-spd-check { height: 20px; padding: 0 2px; font-size: 11px; transition: opacity 150ms ease; } -@media (hover: hover) and (pointer: fine) { - .led-spd tr:not(:hover) .led-spd-check:not(:focus-visible) { opacity: 0; } -} +/* always there, quiet until its row is pointed at (skingstyle48487: a + button shown only on hover went unfound) */ +.led-spd-check { height: 20px; padding: 0 2px; font-size: 11px; color: var(--muted); } +.led-spd tr:hover .led-spd-check, .led-spd-check:focus-visible { color: var(--ctl-fg); } .led-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin-bottom: 8px; } .led-bar .grow { flex: 1; } .led-by { font-size: 11.5px; color: var(--muted); } diff --git a/internal/gui/tests/usage-model-speed.test.cjs b/internal/gui/tests/usage-model-speed.test.cjs index 378c330ee..c38f053e2 100644 --- a/internal/gui/tests/usage-model-speed.test.cjs +++ b/internal/gui/tests/usage-model-speed.test.cjs @@ -206,6 +206,11 @@ for (const engine of (process.env.BROWSER ? [process.env.BROWSER] : ["chromium", checks = 0; const go = card.locator("tbody tr").nth(1).locator(".led-spd-check"); assert.equal((await go.textContent()).trim(), w.check); + // found without pointing at its row first + await p.mouse.move(0, 0); + await p.waitForTimeout(200); + assert.equal(await go.evaluate((b) => getComputedStyle(b).opacity), "1", "Check… shows without hover"); + assert(await go.isVisible()); await go.click(); const dlg = p.locator("#modal .relay-check"); await dlg.waitFor();