Files
magpie/internal/gui
yetone c6b7bbedfc usage: a narrow Requests list makes the rest tighter before it leaves the first token's column out
unscientific9 saw Requests' 首字耗时 column on one Windows machine and not
on another, with the same settings and version. The column is left out
when the table doesn't fit the window (ledFit), and that width is each
machine's own: the saved window size (660 by default), Windows' display
scaling and the text size. It was the first thing to go after Sent,
Effort and the cache, before names were cut shorter, headers wrapped and
the price reference line dropped (tighter). Now tighter comes first, and
the column goes (tight2, its value under the duration since 07fd06b4b)
only if the table still doesn't fit. ledGrow's "nothing left to leave
out" check follows it to tight2.

Measured with usage-ledger-ttft's rows: the column now stays down to
~650px in zh (was 760) and ~770px in en (was 870), in Chromium and
WebKit on mote; on the Windows box the old order dropped it at 720 (zh)
and 800 (en).

Run on mote, at this tree:
- usage-ledger-ttft, usage-speed, usage-ledger-detail, usage-ledger-bytes,
  BROWSER=chromium and webkit: 43 of 43 each.
- usage-ledger-ttft on xiaomi-gpu (win-run, chromium): 6 of 6.
- usage-ledger-ttft now steps from 1600 to 600 wide in every language and
  checks the column is out exactly while tight2 is on, tight2 only after
  tighter, and some width keeps the column with tighter on.
- Broken by hand: with the old order (tight2 before tighter) it goes red
  in every language ("the column goes only after the rest is made
  tighter, at 760").
- The wider run (every usage-*/led* file and the other ledger files,
  i18n-keys, both engines) was still going when this was pushed.

Not tried: the real WebView2 app on Windows, WebKitGTK on Linux, the
reporter's own window size and rows.

Reported-by: unscientific9 (Discord)
2026-11-06 17:55:46 +08:00
..
…
…
…
…
…