Files
magpie/internal/gui/assets/plugins
yetone 987e019d44 library: a skill off on this computer has room for its description and path (Tao)
Tao (tao0194, Discord #feedback, with a screenshot): in Library -> Skills,
handoff from mattpocock/skills showed "Off on this computer" (本机已关闭)
on a line under its name, and its description and the
mattpocock/skills/tree/HEAD... path line were cut off. grill-me beside it,
on, showed all three lines.

Cause: the windowed skill list holds each row to a fixed height (51px, or
67px with a source) and counts its room from that. fe05f0a72 put the tag
on a line of its own (a narrow row's name has no room for it beside the
name), but the row kept the old height, so the centred content spilled
~11px over the top and the bottom.

Fix: the list counts that line too. A skill off here is HERE_H (23px: the
tag's 20px and its 3px margin) taller in the list's sums (client.js,
skillH), and library.css holds such a row to 74px / 90px. The tag stays
where it was; nothing else moves.

Test: internal/gui/tests/skill-off-here-fits.test.cjs. Tao's case
(github skills from mattpocock/skills, handoff off, grill-me on; the
descriptions are stand-ins), plus an off and an on skill without a
source: every line of each row lies inside its padding, and the path
reads mattpocock/skills/tree/HEAD/skills/handoff. en, zh, zh-TW, ja, de
(every language the tag is in), 860px and 400px, Chromium and WebKit.

Run at this head (31deaac00 rebased on b2f7818d2, then the #4901 comment):
- mote (macOS): skill-off-here-fits + skill-off-here, both engines: 44
  pass, 0 fail.
- Broken by hand: the same file at origin/main b2f7818d2 on mote: 22
  fail ("handoff's name starts above the row's padding (-10.64px)"), and
  on WSL both engines red.
- WSL magpie-desktop (Linux): every GUI file that opens the Library (107
  files, both engines): 1997 pass, 35 fail. Of the reds,
  library-chip-fan (webkit), library-mcp-tools (chromium ja 420),
  mobile-web (both, page.goto ERR_HTTP_RESPONSE_CODE_FAILURE) and
  title-bar-tools (webkit) are red the same at origin/main b2f7818d2 run
  alone on WSL; list-sort, market-more and mcp-editor-cancel passed alone
  at this head (5 files, 92 pass, 0 fail), so they were the run's load.
  The new test was red in Linux ja by 0.64-1.34px on a row *without* the
  tag (a taller CJK font); filed as #4901, and the test allows 2px.
- go test ./internal/gui on mote: ok except TestMainWindowCorners/
  macOS_26_SDK, red on macOS 27 already (#3949).

Not tried: the full GUI suite (mote was running other sessions' full
suites, and mote rebooted mid-run once); the real desktop app with a
real skill turned off here; the library subset on macOS (only the two
files above); Windows.
2026-11-02 16:58:41 +08:00
..