Skip to content

fix(hub-ui): keep dock rail expanded while a group menu is open - #304

Merged
antfu merged 1 commit into
mainfrom
fix/hub-ui-dock-rail-collapse-group-menu
Aug 27, 2026
Merged

fix(hub-ui): keep dock rail expanded while a group menu is open#304
antfu merged 1 commit into
mainfrom
fix/hub-ui-dock-rail-collapse-group-menu

Conversation

@antfubot

Copy link
Copy Markdown
Collaborator

What

The dock rail's idle auto-collapse ignored open group menu popovers. After the idle timeout the rail would minimize (float mode) or collapse (edge mode) out from under an open group menu, leaving the popover floating and detached from its trigger button.

Why

A group menu anchors to a dock-bar/toolbar button. Collapsing the rail while the menu is open orphans the popover from its trigger, which is jarring and makes the menu appear to hover with no source.

How

Both rail variants in packages/hub-ui/src/client/components/dock/ now consult the existing shared useDocksGroupPanel() state (set by DockGroupButton when it opens the popover):

  • Dock.vueisMinimized returns false while a group menu is open.
  • DockEdge.vueisCollapsed returns false while a group menu is open.

Normal auto-collapse resumes once the menu closes.

This PR was created with the help of an agent.

@vercel

vercel Bot commented Aug 27, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
devframe Skipped Skipped Aug 27, 2026 4:43am

@antfu
antfu merged commit dd5f159 into main Aug 27, 2026
11 checks passed
@antfu
antfu deleted the fix/hub-ui-dock-rail-collapse-group-menu branch August 27, 2026 04:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants