Commit Graph
1 Commits
Author SHA1 Message Date
yetone 1b8cb53e3f gui: on a phone a row's trailing parts take a line of their own, so a provider's, a gateway key's, a model's, a call's and a routed request's text isn't cut to a letter (zaidu259434 on X)
zaidu259434 on X: 移动端适配真的希望优化下. At 360-430px in a phone browser
(a remote or shared magpie, body.web), rows kept their desktop one-line
layout:
- Providers: the name and host squeezed to a letter or two beside the key
  pill and agent icons; the switch pushed past the card.
- Gateway: the status line, each key's name and masked key, a model's
  badges, and a call's model and path cut to slivers.
- Routing: a request's reasoning ("medium") cut to "m…" beside its upstream.

Fixed at the shared choke points, inside the body.web phone media blocks
of app.css and routing.css only, so the desktop and app window are
unchanged. An empty ::after flex line break puts the trailing pills of
.row.provider, .row.model, .row.gw and .call on a second line. A key's or
account's buttons go under its name, and its hover-only controls are shown,
since nothing hovers on a phone. The upstream tag gets its own line.
routing.js is not touched.

phone-rows.test.cjs: at 360px, on Providers, Gateway and Routing, nothing
runs off the side, no text in a row is cut to a sliver (<40px wide for over
twice that), and every control is inside its row.

Run:
- phone-rows: 10/10 pass (chromium and webkit x en, zh, zh-TW, ja, de).
- On the old assets (a5114d93) phone-rows fails on all three pages in both
  engines.
- Also pass in both engines: phone-web 6, mobile-web 30 (its desktop
  screenshots compared against main), routing-upstream 4,
  gateway-caller-keys 4, gateway-key-limit 4, gateway-key-models 4,
  click-scroll 20, upstream-status 8, api-key-usage 4.
- Audited every page at 360/390/430 in both engines with real data:
  providers and gateway went from 28/33 crushed texts to 0, no horizontal
  page scroll anywhere.
2026-10-10 20:08:47 +08:00