小李 on Discord: switching tabs in the latest version animates wrongly;
from the Library to another provider page "the white background bounces
up". Since 17a2b00ef (v0.1.1355) the open page's row is marked by one
shape (.nav-top-hl) that springs toward the row's offsetTop each frame.
Leaving the Library, its six-tab list folds away above Providers, so the
row rises while the shape travels down to it: the shape went 38-43px past
the row and came back up under it, white on the light theme.
navTopStep now aims at navTopLands(row): the row's offsetTop less the
height and margins of every .nav-sub.leaving above it, which is where it
will rest. No new motion, no layout change, no new timing; the rest check
(nothing still folding) is unchanged. Nearby comments in app.js were cut
so app.js is 73 bytes smaller than before, no budget raised.
sidebar-glide.test.cjs adds a Library fixture and walks usage, agents,
library, providers, asserting the Library's list is open above when
Providers is pressed; its existing "settles with at most a little
overshoot" (< 3px) check is the guard.
Run (mote, through mote-run):
- sidebar-glide.test.cjs, Chromium and WebKit, en and zh, 1024 and 1440:
12 of 12 pass.
- go test -run Budget ./internal/gui: ok.
- whole GUI suite (make test-ui), at load ~40 from other sessions'
unlocked Go suites: 21483 pass, 303 fail in 53 files, none a sidebar
test. The 53 files run at origin/main d4a221f79: 292 fail in the same
files (the class #5475 has). The 8 files red only in the whole run
passed at main; run again at this head, 7 pass and skill-edit's
chromium 400px cases fail, as they do at main (3 there, 2 here), where
the sidebar isn't drawn (filed).
Broken by hand: navTopLands taken out (old code): all 8 sidebar cases red,
"providers: it settles with at most a little overshoot", 38.65-43.19px.
Not tried: the real Mac app; the reporter's screen recording never came
through, so the first report ("tab 切换动画错乱") is taken to be this same
bounce, not checked against their video.
Reported-by: 小李 (Discord)