Skip to content

fix(hub-ui): keep language dropdown above embedded panels - #431

Merged
antfu merged 1 commit into
devframes:mainfrom
SaKaNa-Y:fix/hub-language-dropdown
Oct 5, 2026
Merged

antfu merged 1 commit into
devframes:mainfrom
SaKaNa-Y:fix/hub-language-dropdown

Conversation

@SaKaNa-Y

@SaKaNa-Y SaKaNa-Y commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Important

Please take a moment to read this. Thank you!

I should include a brief explanation of the problem in my own words in every PR. If that explanation is missing, please @mention me and do not merge this PR until I have added it. You may also leave this PR unaddressed (because this means I have not fulfilled my responsibilities as the author).

If my explanation is unclear or difficult to follow, please ask me to clarify or provide reproduction steps or supporting evidence.

I welcome suggestions and counterarguments, especially questions about anything I may have overlooked. (Your feedback helps me learn and improve. 🙏)

I hold myself to this standard for every PR, regardless of its size.

In embedded Edge and Float modes, opening Settings → Appearance → Language places most language options behind the settings panel. The menu is mounted outside the panel in the same shadow root, but its display layer is lower than the panel's. With “Close panel on outside click” enabled, clicks on these options also count as outside clicks and close the settings panel before the selection takes effect.

Override the dropdown layer in Hub UI so menus appear above the embedded panel and below the command palette. Treat events through the embedded dock's custom element as inside clicks so users can select a language without closing the panel.

Validation:

  • Rebuilt Hub UI and checked menu display and mouse selection in Edge, Float, and Popup modes. Checked that the language selection survives a reload and actual outside clicks still close the panel.
  • pnpm lint, pnpm knip, pnpm test, pnpm typecheck, and pnpm build passed. Tests: 147 files passed; 1,639 tests passed and 13 skipped.

@vercel

vercel Bot commented Oct 5, 2026

Copy link
Copy Markdown

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

1 Skipped Deployment
Project Deployment Actions Updated
devframe Skipped Skipped Oct 5, 2026 7:10am UTC

@SaKaNa-Y
SaKaNa-Y marked this pull request as ready for review October 5, 2026 07:19
@SaKaNa-Y

SaKaNa-Y commented Oct 5, 2026

Copy link
Copy Markdown
Contributor Author

This fixes two issues with the language dropdown in Edge and Float modes.

The settings panel covers the dropdown and prevents users from viewing and selecting languages.

And when "Close panel on outside click" is enabled, clicking a language option closes the panel without changing the language.

before:
截屏2026-10-05 14 58 55

now:
截屏2026-10-05 15 18 29

@antfu
antfu merged commit 076da84 into devframes:main Oct 5, 2026
13 checks passed

This branch was previously deployed

1 inactive deployment
Preview — b3562a99 Deployed Oct 5, 2026 by vercel[bot]
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