querymx / querym

Querym is free, open-source and cross-platform MySQL and PostgreSQL GUI client.
https://querym.net/
GNU General Public License v3.0
94 stars 28 forks source link

feat: optimize the position of the context menu #31

Closed ebfood closed 1 year ago

ebfood commented 1 year ago

When optimizing the position of the context menu component #8 , I mainly made the following changes

  1. Obtained the actual width and height of the menu container and stored them in corresponding state variables.
  2. Adjusted the position of the menu based on its size and the viewport dimensions to ensure that it renders correctly within the boundaries.

With these optimizations, the menu's position is adjusted based on its actual width and height, ensuring that it renders within the boundaries and does not exceed them.

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication