masking: the flow goes under the number before its middle bunches up (window ~760px)

ZeRo Xu on X (10-25) showed the Masking card in a narrow window: the
flow beside the number had its middle squeezed to a sliver, the lines
bunched up and "OpenCode Zen" was cut to "OpenCod…".

The band put the flow beside the number down to a 640px container. Measured
with the reporter's data (Codex 19.6K; openai 14.1K, Codex 3.7K, OpenCode
Zen 1.9K) the flow's middle is 410px at a 1068px container, 162 at 820,
110 at 760 and 80 (its floor) at 700, where the names are cut. Now the
flow goes under the number from a 780px container, as it already did
under 640, so it has the card's whole width; the 640px rules (narrow
side columns and the rest) are unchanged.

Run at this head: GUI masking-records, privacy-usage-stats, privacy-model,
mask-actions, i18n-keys, click-scroll (both engines, all pass); go test
-run Budget ./internal/gui ok. Screenshots at 1280, 1000, 900, 820, 780,
760, 700 and 560 in Chromium and WebKit, before and after.

Not tried: the real Linux (WebKitGTK) and Windows apps; CSS only, no
motion or new API.
This commit is contained in:
yetone
2026-10-25 04:18:58 +08:00
parent ffe493773c
commit dbbe979914
@@ -225,8 +225,12 @@ body.window .msk-onebar::before { inset: -6px -16px; }
.msk-steps { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); row-gap: 12px; }
.msk-steps li + li::before { display: none; }
}
@container (max-width: 640px) {
/* below this the flow beside the number leaves its middle under ~120px:
the lines bunch up and the providers' names are cut, so it goes under */
@container (max-width: 780px) {
.msk-band { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
@container (max-width: 640px) {
.mo-flow { grid-template-columns: minmax(0, 1fr) minmax(48px, 1fr) minmax(0, 1fr); gap: 4px; }
.msk-model, .msk-kind:not(:first-child), .msk-kind.more { display: none; }
.msk-msgs.both .msk-mbody, .msk-cols { grid-template-columns: minmax(0, 1fr); }