Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve context menu aside layout via custom logic #22154

Merged
merged 4 commits into from
Dec 18, 2024

Conversation

mgsloan
Copy link
Contributor

@mgsloan mgsloan commented Dec 17, 2024

  • Presence of the aside no longer affects position or size of the context menu.

  • Prefers to fit to the right, then on same side of line, then other side of line, within the following preference order:

    • Max possible size within text area.
    • Max possible size within window.
    • Actual size within window. This is the only case that could cause it to jump around with less stability.

A further enhancement atop this might be to dynamically resize aside height to fit.

Release notes are N/A as they are covered by the notes for #22102.

Closes #8523

Release Notes:

  • N/A

* Presence of the aside no longer affects position of the context menu.

* Prefers to fit to the right, then on same side of line, then other
side of line, within the following preference order:
  - Max possible size within text area.
  - Max possible size within window.
  - Actual size within window. This is the only case that could cause
    it to jump around with less stability.

A further enhancement atop this might be to dynamically resize aside height to fit.

Release notes are N/A as they are covered by the notes for #22102.

Closes #8523

Release notes:

* N/A
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Dec 17, 2024
@zed-industries-bot
Copy link

zed-industries-bot commented Dec 17, 2024

Warnings
⚠️

This PR is missing release notes.

Please add a "Release Notes" section that describes the change:

Release Notes:

- Added/Fixed/Improved ...

If your change is not user-facing, you can use "N/A" for the entry:

Release Notes:

- N/A

Generated by 🚫 dangerJS against 79f15ef

If you scroll right it was able to even overflow off the left of the window!
@mgsloan mgsloan force-pushed the improve-context-menu-aside-layout branch from a62fcd0 to 79f15ef Compare December 17, 2024 21:40
@mgsloan mgsloan merged commit 5d7b614 into main Dec 18, 2024
12 checks passed
@mgsloan mgsloan deleted the improve-context-menu-aside-layout branch December 18, 2024 00:01
helgemahrt pushed a commit to helgemahrt/zed that referenced this pull request Dec 18, 2024
)

* Presence of the aside no longer affects position or size of the
context menu.

* Prefers to fit to the right, then on same side of line, then other
side of line, within the following preference order:
  - Max possible size within text area.
  - Max possible size within window.
- Actual size within window. This is the only case that could cause it
to jump around with less stability.

A further enhancement atop this might be to dynamically resize aside
height to fit.

Release notes are N/A as they are covered by the notes for zed-industries#22102.

Closes zed-industries#8523

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.

Extra space in auto-completion popup
2 participants