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

Fix Flyout alignment #2978

Open
2 tasks
ChristianBusshoff opened this issue Mar 19, 2025 · 0 comments
Open
2 tasks

Fix Flyout alignment #2978

ChristianBusshoff opened this issue Mar 19, 2025 · 0 comments
Assignees
Labels
0-refinement All issues that can or need to be estimated in our next refinement dev Requires technical expertise

Comments

@ChristianBusshoff
Copy link
Contributor

ChristianBusshoff commented Mar 19, 2025

Why?

The flyout is currently cut off if there is insufficient space on its right.
Image
Instead, it should adjust to the available space.
Additionally, the user should have the option to manually control the alignment (left | right).

Implementation details

  • Check if there is enough space on the right. If not, align it to the left.
  • Add an alignment prop with options: auto, left, and right to control the positioning manually.

Reference implementations

For the Tooltip there is already a similar composable to handle the alignment (useWedgePosition) to orientate on.

@ChristianBusshoff ChristianBusshoff added 0-refinement All issues that can or need to be estimated in our next refinement dev Requires technical expertise labels Mar 19, 2025
@ChristianBusshoff ChristianBusshoff self-assigned this Mar 19, 2025
@github-project-automation github-project-automation bot moved this to New in onyx Mar 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0-refinement All issues that can or need to be estimated in our next refinement dev Requires technical expertise
Projects
Status: New
Development

No branches or pull requests

1 participant