From 9277c256731ca18a14f798fc2b5b0fa4cf948d09 Mon Sep 17 00:00:00 2001 From: yetone Date: Sun, 25 Oct 2026 17:04:52 +0800 Subject: [PATCH] masking: under the number, the flow's middle takes the card's width, and sits further from the chart MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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). --- internal/gui/assets/plugins/redact/redact.css | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/internal/gui/assets/plugins/redact/redact.css b/internal/gui/assets/plugins/redact/redact.css index b70ab3fde..7d4d6c888 100644 --- a/internal/gui/assets/plugins/redact/redact.css +++ b/internal/gui/assets/plugins/redact/redact.css @@ -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; }