Skip to content

fix: OPTIC-2157: Actions Menu Disappears at High Browser Zoom Levels #7479

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

Merged
merged 10 commits into from
May 7, 2025

Conversation

yyassi-heartex
Copy link
Contributor

This pull request introduces changes to improve the alignment logic for dropdown elements in scenarios with limited viewport height. It adds a new parameter, openUpwardForShortViewport, to control whether dropdowns should open upward when there is insufficient space below. Debugging console.log statements have also been added for troubleshooting.

image

Alignment logic enhancements:

  • web/libs/core/src/lib/utils/dom.ts: Added a new parameter openUpwardForShortViewport to the alignElements function, defaulting to true. Updated the alignment logic to consider this parameter when determining whether to align dropdowns upward or downward. [1] [2]

Debugging improvements:

@yyassi-heartex yyassi-heartex requested a review from a team May 6, 2025 17:58
@github-actions github-actions bot added the fix label May 6, 2025
Copy link

netlify bot commented May 6, 2025

Deploy Preview for heartex-docs canceled.

Name Link
🔨 Latest commit 024aa14
🔍 Latest deploy log https://app.netlify.com/sites/heartex-docs/deploys/681b6d6196f349000899d95c

Copy link

netlify bot commented May 6, 2025

Deploy Preview for label-studio-docs-new-theme canceled.

Name Link
🔨 Latest commit 024aa14
🔍 Latest deploy log https://app.netlify.com/sites/label-studio-docs-new-theme/deploys/681b6d611511600008b8010d

Copy link

netlify bot commented May 6, 2025

Deploy Preview for label-studio-storybook ready!

Name Link
🔨 Latest commit 024aa14
🔍 Latest deploy log https://app.netlify.com/sites/label-studio-storybook/deploys/681b6d61d6b11a00081cc2a2
😎 Deploy Preview https://deploy-preview-7479--label-studio-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@vladimirheartex
Copy link
Contributor

vladimirheartex commented May 7, 2025

/fm sync

Workflow run

@yyassi-heartex
Copy link
Contributor Author

yyassi-heartex commented May 7, 2025

/git merge

Workflow run
Successfully merged: 3 files changed, 20 insertions(+), 5 deletions(-)

@yyassi-heartex yyassi-heartex enabled auto-merge (squash) May 7, 2025 14:26
@yyassi-heartex yyassi-heartex merged commit a1dfb93 into develop May 7, 2025
38 checks passed
@robot-ci-heartex robot-ci-heartex deleted the fb-optic-2157/dropdown branch May 7, 2025 15:07
jombooth pushed a commit that referenced this pull request May 12, 2025
…7479)

Co-authored-by: bmartel <[email protected]>
Co-authored-by: vladimirheartex <[email protected]>
Co-authored-by: yyassi-heartex <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants