Repository navigation
fix(web): the desktop Actions menu scrolls instead of spilling out of its panel - #593
Merged
ibrahimroshdy merged 2 commits intoNov 30, 2026
Merged
Conversation
… its panel React Aria caps the popover's height at the room below the button, but the popover had no overflow rule, so a long menu (a box's) drew its last items outside the panel. The popover scrolls now, like the Select and Combobox popovers. Closes keptinventory#591.
Contributor
Author
|
The red |
Collaborator
|
Thanks @canblmz1, merged. It ships in 1.14.9. One small follow-up, if you'd like to take it: the test checks that the last item is reachable, but not that the menu overflows to begin with, so it would still pass if the window were tall enough to fit everything. A line like this before the scroll would pin it down: expect(await panel.evaluate((el) => el.scrollHeight > el.clientHeight)).toBe(true); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
Closes #591.
On a thing's page, the desktop Actions menu could be taller than the room below its button. React Aria caps the popover's height to that room, but the popover had no overflow rule, so the menu kept its full height and its last items (Move to Trash on a box) were drawn outside the panel. The popover now scrolls (
overflow-y-auto), as the Select and Combobox popovers already do. The phone's bottom sheet is unchanged.e2e/action-menu.spec.tsopens the seed's Ramadan decorations box at 1280 × 600 on thehouseholdinstance, checks that the panel ends inside the window, scrolls Move to Trash into view and checks it stays inside the panel. Without the change it fails (the item ends at 596 px, the panel at 588.5 px); with it, it passes.Checks
bash scripts/ci-local.shpasses (or--fast, and say which steps you couldn't run): I didn't run the whole gate. I ran the new spec (KEPT_E2E_INSTANCES=household pnpm --filter @kept/web exec playwright test action-menu.spec.ts --project=desktop) against built server and web, with and without the change, plusbiome checkon both files andpnpm --filter @kept/web typecheck.