Repository navigation
Studio: open the sidebar More menu on hover again - #12339
Merged
Merged
Conversation
#12216 made the More menu click-only to stop its tooltip covering the open menu. That came from the old press handler swallowing the event, not from hover, so hover is restored without it. Mouse hover previews the menu and a 180ms grace period covers the gap to it. A press pins or unpins it. Touch and keyboard open it through the trigger as usual. A hover preview leaves focus where it was, so passing over More no longer pulls the caret out of the composer.
Member
Author
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
A press on More while the hover preview is open pinned the menu, but the content was already mounted, so Radix never moved focus and it stayed in the composer. Focus the menu content on that press, as a click-open does, so arrow keys reach the menu and Escape returns focus to the row.
Member
Author
|
@codex review |
|
Codex Review: Didn't find any major issues. What shall we delve into next? Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
shimmyshimmer
added a commit
that referenced
this pull request
Sep 30, 2026
* Studio: keep menus and popovers below the desktop titlebar The desktop titlebar paints over body-portaled surfaces, but Radix sizes and places menus against the window edge. A menu opening upward in a short window was capped to the full height above its trigger, so its top rows sat behind the titlebar. The floating primitives (dropdown, context menu, menubar, popover, select, hover card, combobox) now add --studio-window-chrome-top to their top collision padding, so Radix caps, flips and shifts against the titlebar's bottom edge. The value is read once and refreshed when the desktop chrome or macOS zoom changes. It is 0 in a browser. Also lets more-menu-separator-gap.test.ts match the More flyout now that it carries a ref (#12339). * Studio: keep the message More menu below the desktop titlebar The message action bar's More menu is assistant-ui's own Radix content, not DropdownMenuContent, so it missed the titlebar padding. Its height was also uncapped: when neither side has room, a menu that flips up keeps its full height and still runs under the titlebar, since padding only moves it sideways. Give it the titlebar collision padding and cap it at Radix's available height, so it stops at the titlebar and scrolls. * Studio: cap popovers at the height below the titlebar Radix's collision padding moves a popover but doesn't shrink it, so a tall one (like the Agents model picker) could cover its trigger or run under the desktop titlebar. Cap PopoverContent at the available height and scroll. Callers that set their own max-h or overflow keep them. * Studio: cap dropdown submenus at the available height DropdownMenuSubContent had no max height, so a long submenu (projects, the composer More list) could run past the window or under the titlebar with its rows out of reach. Cap it and scroll an inner viewport, like the top-level menu. * Studio: cap context submenus at the available height ContextMenuSubContent had no max height of its own. The sidebar's Move to and Section submenus already pass one, so cap and scroll the primitive like ContextMenuContent for any other caller. Those two render the same.
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
#12216 made the sidebar More menu click-only to stop its tooltip covering the open menu. The tooltip problem came from the old press handler (
onPointerDownCapturewithstopPropagation), not from hover itself, so this brings hover back without that handler and keeps the #12216 tooltip fixes.Behavior:
sidebar-more-menu-interaction.test.tsis rewritten to cover hover, press to pin, the #12216 tooltip behavior and focus handling. The hover rationale innonmodal-menu-dismiss-guard.test.tsis restored.Validation
tsc -band the test tsconfig pass.