-
Notifications
You must be signed in to change notification settings - Fork 83
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: update media query to work with larger phones #8116
base: main
Are you sure you want to change the base?
Conversation
Update the media query that sets the overlay to show on the bottom of the page to work with larger phones, such as the iPhone Pro Max. For such devices, this current media query is not met leading to the menu overlay being opened at the top-left corner of the screen.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this should be then also updated in other places e.g. vaadin-select
might have the same problem?
Quality Gate passedIssues Measures |
That's true. I wasn't able to find a value that would work for most of phones with large screens. One option would be to align the media query, in this case, with the threshold value for the media query used in the context menu to define whether a touch device is a phone or not: web-components/packages/context-menu/src/vaadin-context-menu-mixin.js Lines 125 to 130 in c673dc2
The problem now happens with devices that are in between the current |
Maybe it would make sense to align the context menu's behavior with the other components and instead of the current |
Description
Update the media query that sets the overlay to show on the bottom of the page to work with larger phones, such as the iPhone Pro Max.
For such devices, this current media query is not met leading to the menu overlay being opened at the top-left corner of the screen.
Before
After
Fixes #8092
Type of change