Skip to content

title_bar: Use popovers for modal anchoring#45924

Merged
danilo-leal merged 12 commits intozed-industries:mainfrom
srimanachanta:titlebar-popover-menus-unsimplified
Jan 4, 2026
Merged

title_bar: Use popovers for modal anchoring#45924
danilo-leal merged 12 commits intozed-industries:mainfrom
srimanachanta:titlebar-popover-menus-unsimplified

Conversation

@srimanachanta
Copy link
Contributor

@srimanachanta srimanachanta commented Jan 1, 2026

Anchoring fix part of #45853

Before:

Screen.Recording.2025-12-30.at.3.22.15.PM.mov

After:

Screen.Recording.2025-12-31.at.8.19.32.PM.mov

Release Notes:

  • N/A

Two versions of the branch picker popover. Simplified and Full
create_new_window doesn't make sense as a variable name for what the variable did which was dictate how new projects were opened.
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Jan 1, 2026
@srimanachanta srimanachanta changed the title bug: title_bar: Use PopoverMenus instead of Modals for Mouse Interactions bug: title_bar: Fix anchoring of menus for mouse interaction Jan 1, 2026
@maxdeviant maxdeviant changed the title bug: title_bar: Fix anchoring of menus for mouse interaction title_bar: Fix anchoring of menus for mouse interaction Jan 1, 2026
@danilo-leal danilo-leal self-assigned this Jan 3, 2026
@danilo-leal danilo-leal changed the title title_bar: Fix anchoring of menus for mouse interaction title_bar: Use popovers for modal anchoring Jan 4, 2026
Copy link
Member

@danilo-leal danilo-leal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the follow up! I've pushed a few commits cleaning up/simplifying this to the core change: making the modal use popovers when triggered through by a pointer. Slightly unsure whether the added dependencies are worth it, but I suppose it's what it takes for now... in any case, thanks again!

@danilo-leal danilo-leal merged commit 0a1b798 into zed-industries:main Jan 4, 2026
25 checks passed
danilo-leal added a commit that referenced this pull request Jan 5, 2026
This PR essentially removes the logic I introduced in
#45361 to position workspace
modals based on the pointer click coordinates. All of this code has
become unnecessary given in
#45924 we made the remote,
project, and branch modals use popovers when triggered with a pointer,
which already handle all the anchored positioning based on the trigger
(much better).

Release Notes:

- N/A
rtfeldman pushed a commit that referenced this pull request Jan 5, 2026
rtfeldman pushed a commit that referenced this pull request Jan 5, 2026
This PR essentially removes the logic I introduced in
#45361 to position workspace
modals based on the pointer click coordinates. All of this code has
become unnecessary given in
#45924 we made the remote,
project, and branch modals use popovers when triggered with a pointer,
which already handle all the anchored positioning based on the trigger
(much better).

Release Notes:

- N/A
@srimanachanta srimanachanta deleted the titlebar-popover-menus-unsimplified branch January 11, 2026 07:20
LivioGama pushed a commit to LivioGama/zed that referenced this pull request Jan 20, 2026
LivioGama pushed a commit to LivioGama/zed that referenced this pull request Jan 20, 2026
…ries#46047)

This PR essentially removes the logic I introduced in
zed-industries#45361 to position workspace
modals based on the pointer click coordinates. All of this code has
become unnecessary given in
zed-industries#45924 we made the remote,
project, and branch modals use popovers when triggered with a pointer,
which already handle all the anchored positioning based on the trigger
(much better).

Release Notes:

- N/A
LivioGama pushed a commit to LivioGama/zed that referenced this pull request Jan 20, 2026
LivioGama pushed a commit to LivioGama/zed that referenced this pull request Jan 20, 2026
…ries#46047)

This PR essentially removes the logic I introduced in
zed-industries#45361 to position workspace
modals based on the pointer click coordinates. All of this code has
become unnecessary given in
zed-industries#45924 we made the remote,
project, and branch modals use popovers when triggered with a pointer,
which already handle all the anchored positioning based on the trigger
(much better).

Release Notes:

- N/A
LivioGama pushed a commit to LivioGama/zed that referenced this pull request Feb 15, 2026
LivioGama pushed a commit to LivioGama/zed that referenced this pull request Feb 15, 2026
…ries#46047)

This PR essentially removes the logic I introduced in
zed-industries#45361 to position workspace
modals based on the pointer click coordinates. All of this code has
become unnecessary given in
zed-industries#45924 we made the remote,
project, and branch modals use popovers when triggered with a pointer,
which already handle all the anchored positioning based on the trigger
(much better).

Release Notes:

- N/A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants