masking: under the number, the flow's middle takes the card's width, and sits further from the chart

The owner's screenshot of Insights › 脱敏 with the band stacked: the
animation stayed narrow, as each of the flow's three columns kept a
third of the card, and it sat 16px under the chart.

Under 780px the names now take what they need (fit-content, up to 150px,
120px under 640px) and the middle the rest; the gap is 28px. Measured in
Chromium, the middle's width before → after: 760px window 386 → 452,
640px 189 → 365, 560px 162 → 285, 480px 135 → 205. 820px and up (the
flow beside the number) is unchanged.

Run: screenshots at 760, 640 and 560 in Chromium and WebKit, before and
after; GUI masking-records 52/52, privacy-usage-stats 4/4, mask-actions
20/20, i18n-keys 4/4, click-scroll 22/22; privacy-model 23/24 in that
run, beside a Go test run, and 24/24 three times alone after it (the
failing test's name wasn't kept); go test -tags nogui -run Budget
./internal/gui ok.
Not tried: the whole GUI suite; the real Linux app (WebKitGTK).
This commit is contained in:
yetone
2026-10-25 17:05:38 +08:00
parent 3ee37aea64
commit 9277c25673
@@ -228,10 +228,13 @@ body.window .msk-onebar::before { inset: -6px -16px; }
/* 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; }
.msk-band { grid-template-columns: minmax(0, 1fr); gap: 28px; }
/* under the number the flow has the card's width: the names take what
they need, the middle the rest, not a third of it */
.mo-flow { grid-template-columns: fit-content(150px) minmax(80px, 1fr) fit-content(150px); }
}
@container (max-width: 640px) {
.mo-flow { grid-template-columns: minmax(0, 1fr) minmax(48px, 1fr) minmax(0, 1fr); gap: 4px; }
.mo-flow { grid-template-columns: fit-content(120px) minmax(48px, 1fr) fit-content(120px); 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); }
.msk-cols span:last-child { display: none; }