Skip to content

fix: Environment dropdown positioning logic#537

Merged
luanfreitasdev merged 1 commit into4.xfrom
fix-observer-selector
Apr 11, 2026
Merged

fix: Environment dropdown positioning logic#537
luanfreitasdev merged 1 commit into4.xfrom
fix-observer-selector

Conversation

@luanfreitasdev
Copy link
Copy Markdown
Member

This pull request updates the positioning logic and styling for the environment dropdown menu in EnvironmentDropdown.vue to improve its usability and appearance. The main changes focus on more precise dropdown placement, enhanced styling, and improved element references.

Dropdown positioning and element references:

  • Added a dropdownRef to reference the dropdown element directly, allowing for accurate calculation of its width and position. [1] [2]
  • Updated the calculatePosition function to center the dropdown below the add button, prevent overflow off the screen, and use the dropdown's actual width for calculations.

Styling and usability improvements:

  • Enhanced the dropdown menu with a maximum height, vertical scrolling, and improved flexbox layout for better usability with many environments.

Code cleanup:

  • Removed the unused computed import from Vue, streamlining the imports.

@luanfreitasdev luanfreitasdev merged commit e68b750 into 4.x Apr 11, 2026
3 checks passed
@luanfreitasdev luanfreitasdev deleted the fix-observer-selector branch April 11, 2026 20:22
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.

1 participant