Repository navigation
Fix sidebar More menu hover and collapsed border hover - #12216
Merged
Merged
Conversation
Open the More menu only on click. Hovering the row no longer opens it, and the pointer override that kept the tooltip from closing is gone, so the tooltip no longer covers the open menu. The tooltip also stays closed when the menu returns focus to the row after a choice, so no label is left next to the collapsed sidebar. Hover and keyboard focus still show the label. Render the sidebar resize edge only while the sidebar is expanded. A collapsed sidebar no longer shows the border highlight or the expand and resize tooltip on hover. The expanded edge still resizes and collapses as before, and the desktop app's edge strip is unchanged. Update the More menu tests for click-only opening and add a test that a collapsed sidebar renders no resize edge. The full frontend suite, TypeScript checks and the desktop contract tests pass.
Member
|
@codex review |
shimmyshimmer
added a commit
that referenced
this pull request
Sep 30, 2026
* Studio: open the sidebar More menu on hover again #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. * Studio: focus the More menu when pinning a hover preview 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.
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.
Summary
Two fixes for the left sidebar.
More menu opens on hover
Hovering the More row opened its menu, and on the collapsed sidebar the More tooltip stayed on top of the open menu. The menu now opens only on click, and its tooltip stays hidden while the menu is open. After a choice from the menu, focus returns to the row without bringing the tooltip back. Hover and keyboard focus still show the label on the collapsed sidebar.
Collapsed sidebar border reacts to hover
On the collapsed sidebar, hovering the border showed a highlight line and the "Click to expand / Drag to resize" tooltip. The resize edge now renders only while the sidebar is expanded, where drag to resize and click to collapse work as before. Clicking or dragging the collapsed border no longer expands the sidebar. The sidebar toggle and Ctrl+B still do. The desktop app's edge strip is unchanged.
Changes
app-sidebar.tsx: remove the hover preview state and the pointer capture override on the More trigger. The menu uses its own open state, and the tooltip is controlled so it stays closed while the menu is open and when the menu returns focus to the row.ui/sidebar.tsx: renderSidebarResizeHandleonly while the sidebar is expanded.sidebar-more-menu-interaction.test.tsnow checks click-only opening, the newsidebar-collapsed-edge.test.tschecks that a collapsed sidebar renders no resize edge, and the More menu exemption innonmodal-menu-dismiss-guard.test.tsno longer refers to the hover preview.