chiperman's case: beside deepseek-v4-1-flash-economy-20261017 the
model's display-name field shrank to ~20px at 900px wide (77-94px at
400px), too small to click. The field could shrink to nothing
(min-width: 0) while the id beside it kept its whole width.
The field now keeps a 96px floor. It still fills only the room the id
leaves (flex: 1, basis 0, up to 220px), so a long id gives way after the
field reaches 96px and ends in an ellipsis. A short id is shown whole as
before.
Ported from chiperman's 8691d31 (issue thread; PRs are
collaborators-only), with one change. Their `flex: 0 1 220px` made the
field and the id shrink together, so a short id that fit was cut:
"example" went 48 -> 41px at 1100px in WebKit, and readable-focus's
"selecting a model ID" went red in WebKit (selection ran past the cut
id). Only the min-width is raised here. Their regression test is kept
(the reporter's id in provider-same-as at 900px). Added: one test per
engine, at 400/900/1440px in en, zh, zh-TW, ja and de. It checks the
field is >= 96px, the id is beside it, inside the row and ellipsized,
and that a short id is shown whole.
Run on mote (macOS 27, Playwright 1.62.0, chromium + webkit), at
0ee424e3e plus this change:
- provider-same-as + readable-focus, concurrency 1: 14/14 ok.
- Broken by hand, same files: old CSS -> 6 red ("a long model ID must
not squeeze its name field away"; "en at 400px: the name field is
77.203125px wide" in WebKit). chiperman's CSS -> 4 red ("en at 900px:
a short id is shown whole" in both engines, readable-focus WebKit).
- Every GUI file that reaches the Names editor (21 files) plus gui-zh-tw,
gui-ja, gui-de and i18n-keys: 320/325. The 5 reds are on origin/main
0ee424e3e too, run the same way (2 of 2 runs each):
models-select-all-api "Select all leaves the models..." (flaky at
420/1100, #4389) and provider-levels-scroll WebKit (#4395).
After rebasing onto origin/main 3eb2bda4f (a Settings change only):
provider-same-as + readable-focus again at this commit, 14/14 ok.
Not tried: the whole GUI suite, the native macOS/Windows/Linux windows
(only Playwright's engines), Go tests (no Go or app.js change;
TestCoreScriptBudget covers app.js, which is unchanged).
Co-authored-by: chiperman <34889778+chiperman@users.noreply.github.com>