Actions menu on a thing: the last items spill out of the menu instead of scrolling
What happened
On a thing's page, the desktop "Actions" menu is taller than the space below the button. The menu's border and background end above the last item, and "Move to Trash" is drawn outside the menu box, over the page. Nothing in the menu scrolls, so on a shorter window the last items are cut off or sit outside the panel.
It shows on a box (a container thing), where the list is longest: Move, Lend, Pick up, Box check, Count this box, Pack into this box, Label, Duplicate, Save as template, Mark as seen, Not here, Change status, Archive, Change type, Convert to a room or place, History report, Share a view-only link, Copy link, Move to Trash.
What you expected
The menu stays inside its panel and scrolls when it doesn't fit, like the Select and Combobox popovers do.
Why it happens
apps/web/src/components/things/action-menu.tsx, the wide (md and up) branch of ActionMenu:
<Popover
placement="bottom end"
offset={6}
className="z-50 min-w-64 rounded-[10px] border border-line bg-surface shadow-[0_10px_30px_rgba(0,0,0,.14)] outline-none"
>
<Items items={items} onAction={onAction} />
</Popover>
React Aria sizes the popover to the space it has (it sets a max-height on the popover from the available viewport height), but neither the Popover nor the Menu inside it (className="grid gap-px p-1 outline-none") has an overflow rule. The menu keeps its full height and spills out of the clipped box.
components/ui/select.tsx and components/ui/combobox.tsx don't have this, because their popovers carry overflow-y-auto (plus a fixed max-h-80 / max-h-72).
Suggested fix
Let the popover scroll, for example overflow-y-auto on this Popover (or max-h-[inherit] overflow-auto on the Menu, as in the React Aria menu examples). The two filter popovers (filters/display.tsx, filters/views.tsx) have the same shape without an overflow rule and may want the same, depending on how long they can get.
How to make it happen again
- Open a box (a thing that holds things) on a desktop browser, window wide enough for the menu (
mdand up) but not very tall, for example about 900 px. - Click "Actions".
- The last item, "Move to Trash", sits below the menu's border.
Where
- Kept version: 1.14.8
- How it runs: Docker Compose, amd64
- Browser or phone: Microsoft Edge on Windows (desktop), not installed as an app
- Language: German (the item is "In den Papierkorb")
Logs
None, it's layout only.
I would like to take this one: let the wide Actions popover scroll (overflow-y-auto, as the Select and Combobox popovers do), with a test that opens a box's menu in a short viewport and checks the last item stays inside the panel.
This is in 1.14.9, out now: the Actions menu scrolls when the window is short, so its last items stay reachable.