-
Notifications
You must be signed in to change notification settings - Fork 47
Mobile name UX edge-of-screen behavior improvement #520
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
base: main
Are you sure you want to change the base?
Conversation
|
@davidhatten is attempting to deploy a commit to the noahm's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
noahm
left a comment
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.
Adding the OverlaysProvider? Yes, that's long overdue.
The rest of the style changes? I'm not so sure about, and I don't really see how they improve UX or the specific edge-of-screen issue for card actions and the 2nd layer menus.
Personally I'm not interested in fixing the card aspect ratio in this way, and prefer to have a more fluid design that allows them to fill different sized spaces. (This also affects how they can be presented on streams as something that must fit into the rest of the stream's visual layout.)
| import "@blueprintjs/datetime/lib/css/blueprint-datetime.css"; | ||
|
|
||
| import { FocusStyleManager } from "@blueprintjs/core"; | ||
| import { OverlaysProvider } from "@blueprintjs/core"; |
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.
Huh... I didn't realize that I wasn't using this yet. That's a big oversight on my part. I think this is the main thing that improves the 2nd layer menus positioning within 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.
Unfortunately this had no noticeable effect but yeah the docs says it's necessary for overlays so 🤷
yeah, I'm following the issue generally, and I agree it's sucky behavior that needs a fix. I just didn't expect these other changes to the card shape to actually be involved in fixing that, versus... whatever the |
|
@davidhatten On further inspection, I'm not actually sure how you arrived at a point where this appeared to resolve the issue for you. In my testing on this branch the exact same problematic behavior happens in both iOS safari and in "responsive mode" on the desktop versions of Chrome and Firefox. I'm glad you're bringing attention to this issue! 🙇 ...but unfortunately I don't think we've found a real fix just yet. I'm a little stumped too, since the blueprint menus system has very deliberate behavior to keep items on screen. I'm pretty sure something else I'm doing with my app's layout is probably breaking that behavior, but I have no idea what. |
Oh no, it's bigger than I thought. What's "Responsive Mode"? I emulated an android device using chrome devtools I wonder if there's a flexbox somewhere there shouldn't be. It doesn't look like the card draw tray itself is growing, but I haven't been able to find a useful element in this state yet
Yeah I have no idea what the |




This change combines a few behaviors to result in a better experience on mobile. This does affect desktop as well.
The P1/P2 selector was performing incorrectly at the right edge of the screen. This change forces the menuitems to behave correctly.
Current Mobile behavior:

Current mobile behavior (zoomed out):

New Mobile Portrait:

New Mobile Landscape:

Current Desktop behavior:

New Desktop behavior:

New Desktop 5, 7, and 9 card draws
