gui: a phone draws a choice of options 32px tall and takes it at 44

On a phone (body.web at 760px or less, or a coarse pointer to 1024px) a
.segs strip was 44px of fat buttons. Its options are now drawn 28px
tall in a 32px strip, 13px text with 11px padding, and each takes a tap
44px tall through a transparent ::after, so what is drawn is small and
what a finger hits is not.

Run (mote, at this branch's head after the rebase onto 8ac1c7a56, beside
8ac1c7a56 itself): go test ./internal/gui/, and 116 GUI files (every
usage-*, view-*, *scroll*, phone-* and thumb file, Routing's rules and
the sign-in files) in both engines, concurrency 4. 1903 tests, 64 red on
the head; 1891, 64 red on main. The branch's own tests pass:
usage-phone-head in all 5 languages and both engines, usage-range,
credit-days, routing-held-dot, routing-rule-columns, segs-glide.
Red on both, each with an issue: TestSettingsSaveKeepsWhatItDoesNotSend
(#4514), TestMainWindowCorners/macOS_26_SDK (#3949), provider-typed
(#4673, filed now), tencent-cloud (#4321), usage-agents-hide (#3414),
usage-ledger Requests (#3104), mobile-web (#3952), phone-connect-menu
(#3524), menu-input-scroll (#3402), provider-levels-scroll (#4395),
view-open-wheel in WebKit under load (#4132).
Before the last three commits and the rebase, the whole GUI suite ran on
this branch: 17076 tests; the reds it alone had were routing-held-dot and
routing-rule-columns (fixed by the thumb commit), credit-days and
usage-range (the two test commits).
Not tried: a real phone; Playwright at 390 and 420px stands in for one.
This commit is contained in:
yetone
2026-11-01 12:53:13 +08:00
parent 8f5f2a2941
commit f00a849019
+11 -1
View File
@@ -3991,7 +3991,17 @@ body.panel .modal { padding: 16px 12px; }
}
body.web .foot .status { min-width: 0; overflow-wrap: anywhere; }
body.web .row-head { height: auto; min-height: 40px; flex-wrap: wrap; gap: 4px; }
body.web .text, body.web .field, body.web .segs .opt, body.web .copy { min-height: 44px; }
body.web .text, body.web .field, body.web .copy { min-height: 44px; }
/* A choice of options is drawn at iOS's segmented height, 32px, and
taken at a finger's 44: its options drawn 44px tall made every strip
a fat block on a phone. The tap's room is each option's own ::after,
reaching past the strip above and below it; a strip that scrolls
sideways clips it rather than scroll up and down by it. */
body.web .segs { border-radius: 8px; }
body.web .segs .thumb { border-radius: 6px; }
body.web .segs .opt { height: 28px; padding: 0 11px; font-size: 13px; }
body.web .segs .opt::after { content: ""; position: absolute; left: 0; right: 0; top: -8px; bottom: -8px; }
body.web :is(.segs.regions, .connect .segs, .pm-ghbar .segs, .ctx-contents-head .segs, .editor.importapps .approw .segs) { overflow-y: hidden; }
body.web .text { padding: 8px 10px; }
body.web .copy { min-width: 44px; }
body.web .fields { width: 100%; grid-template-columns: minmax(0, 1fr) minmax(0, 124px); }