Skip to content

Configure adaptive positioning for small screens #3354

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

Closed

Conversation

ritikpal1122
Copy link

feat(popover): improve responsive positioning behavior

  • Add collision detection and boundary constraints
  • Configure adaptive positioning for small screens
  • Implement fallback positions when space is limited
  • Add padding and sticky behavior for better UX

Whart I've fixed in this PR

Changes

  • Added collision detection using avoidCollisions prop
  • Set document.body as collision boundary
  • Configured adaptive positioning with fallback positions
  • Added 10px collision padding for better spacing
  • Implemented sticky behavior for smooth transitions

Testing

  • Tested on small screens
  • Verified tooltip repositioning when space is limited
  • Confirmed proper behavior on all viewport sizes

@ritikpal1122
Copy link
Author

hi @chaance can you please check this out

@ritikpal1122 ritikpal1122 closed this by deleting the head repository Apr 30, 2025
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