Skip to content

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
@netlify
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

@netlify
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

@netlify
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.

6 participants