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

Mobile Overflow Issue for Live Examples on Homepage #699

Open
salemlf opened this issue Sep 4, 2023 · 1 comment
Open

Mobile Overflow Issue for Live Examples on Homepage #699

salemlf opened this issue Sep 4, 2023 · 1 comment

Comments

@salemlf
Copy link

salemlf commented Sep 4, 2023

Bug report

Current Behavior

When clicking on the rightmost examples on smaller screen widths, content overflows horizontally and causes a black bar on right side of screen.

Video of issue:

Screen_Recording_20230903_215725_Vivaldi.Browser.mp4

Expected behavior

Preview of live example stays within rightmost bound of parent container, preventing overflow.

Reproducible example

  1. Go to Radix UI homepage: https://www.radix-ui.com/
  2. Click on one of the rightmost examples (first to cause overflow will vary based on phone width, for me it starts on the fourth example)
    Screenshot_20230903_220928_Vivaldi Browser.jpg

Screenshot_20230903_220814_Vivaldi Browser.jpg

Suggested solution

I'm assuming something similar to the Radix Hover Card or Tooltip primitives are used here, and in that case would use the avoidCollisions prop or possibly an updated collisionBoundary. Hopefully an implementation bug and not a bug within a primitive.

Additional context

None

Your environment

  • Samsung Galaxy S23 Ultra
  • Android 13, One UI 5.1
  • Vivaldi browser (chronium-based)
@AbhayJha24
Copy link

Hi, I can fix this issue if no one has been assigned to this

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

No branches or pull requests

2 participants