Loading…
Reference in a new issue
No description provided.
Delete branch "fix/1029-menu-stays-on-screen"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #1029. Closes #1030.
Menus stay on the screen (#1029)
A menu hangs from one edge of the button that opens it. That is right only while the button sits near that edge of the page. On a phone, a wiki article's "See it as…" wraps to the left and its menu ran 30px off the screen.
Menunow measures its open panel before paint and moves it sideways by whatever it is off by (--menu-nudge, applied astranslateinMenu.css). The limit is the nearest box around it that clips its contents, and the window in any case. It keeps a 16px gutter from that limit, but never more than its own button keeps. The panel is also never wider than the screen.Measured in a browser, 390×844 (touch) and 1440×900, every menu the seed reaches:
The table's "Shelf menu" was measured at 724…996 in the second pass (16px off its button); the last commit puts it back at 740…1012. That commit is covered by a unit test built from the measured rects, not by a third browser pass.
No horizontal page scroll with any menu open (document and
.book__scrollscrollWidth = clientWidth at both widths).Not measured: "Add to a sheet" (the seed has no page that offers it) and the account menu at 390 (there is none; the phone has the Contents drawer).
The content pickers keep their list (#1030)
Level up's feat picker and Start a character's "Choose from the loaded content" read their list straight from
useAsync'sresult, which isundefinedwhile a request is in flight. On every search the list emptied, "Nothing matches" was shown and announced, and every row was unmounted and mounted again. A key pressed on a row in that moment was lost, which is what failed J7 on the keyboard in #1027's run (1790).Both now keep the last answer until the next arrives, as
AddFromContentalready does.Checks
e2e/j7-a-character.spec.json the keyboard project, three repeats in a local e2e stack: 18 passed, no retries.🤖 Generated with Claude Code