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: fixed popover overflowing edge of browser #26464

Merged
merged 2 commits into from
Nov 27, 2024

Conversation

adamleithp
Copy link
Contributor

@adamleithp adamleithp commented Nov 27, 2024

documented here: #26460

Changes

Added document.body as boundary to popover positioning

Does this work well for both Cloud and self-hosted?

it doesn't have an impact

How did you test this code?

Opened and tested the popover on pages where visible/accessible, tested chrome and firefox/

Screenshots

Broken:
Screenshot 2024-11-27 at 11 32 01

Fixed:
Screenshot 2024-11-27 at 14 22 35

I added some padding and boundary to ensure it flips to other side if near edge!

@corywatilo corywatilo changed the title fixed popover overflowing edge of browser fix: fixed popover overflowing edge of browser Nov 27, 2024
@adamleithp adamleithp added bug Something isn't working right design Issues that need a designer's attention labels Nov 27, 2024
@adamleithp adamleithp merged commit 48107f6 into PostHog:master Nov 27, 2024
100 of 101 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working right design Issues that need a designer's attention
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants