Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Components: Switch the orientation of the Popover Component only if there's more space #3947
Sometimes on small screens popovers keep switching their orientation because there's not enough space in both directions, this PR tackes this issue by switching the direction only if there's more space than the current direction.
As a follow-up we may try to limit the height/width of the popover if the available space is not big enough.
(Pretty sure there's an issue about this bug, but can't find it)
(Some popovers to try: post visibility, post schedule, inserter).