-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Tooltips/popovers get cut off if there is not enough room #3429
Comments
Agreed - I think in both cases this only affects E2E rooms (due to the wider link text on 'View Decrypted Source' and the longer list of items in the case of the menu button on the bottom of the page). |
Any hints how this could be solved? Would give it a try, but not sure how to do it. Maybe with some calculation, x/y pixel position, window height/width? Or what would be the proper way to do solve this? |
Yeah calculate an offset to ensure that at worst the bottom of the menu is at the bottom of the window |
Still misses: * Correct positioning of the tile on x and y overflow * Correct positioning if we flip on the x/y axis
@rxl881 @lampholder Just a head's up: this now affects sticker packs: |
I've bumped the priority of this - even though sticker packs should now be fixed with an independent change, the original problem has gotten worse as more (and perhaps more commonly desired) functionality lurks behind that context menu. I'm thinking primarily about replies - since 'Reply' is the bottommost option, and since you're quite likely to want to reply to the message that was most recently sent (esp. when testing replies as it turns out), it's pretty annoying not to be able to reach that option in the context menu. As an aside, we might also consider reordering the options in the context menu such that the most commonly used appear first. |
@lampholder this is not the case right now. Easily reproduced by collapsing the room member list (and having a somewhat narrow monitor). |
@turt2live - It is not the long term solution, but hopefully this really has been fixed / made better for sticker packs at least in matrix-org/matrix-react-sdk#1903. |
Yup! Sticker packs fixed, now we just need the long-term wider fix 😇 |
🎉 THANK YOU |
Hm. The original issue was for the menu flowing to the right instead of left when it gets cut off. I took this issue to be mostly about downwards ctx menus. Classic case of the issue becoming more generic, which is fine. @lampholder, should we track the original issue with the original triage? |
Yeah, I think this goes back to a P2 Minor now - even with the widest possible context menu content (view decrypted source) it's still usable when it slips off the right hand side of the screen. |
This case is now fixed by matrix-org/matrix-react-sdk#3087. It's unfortunately specific to that menu, so any other instances are still valid issues for now. |
This has been fixed by matrix-org/matrix-react-sdk#7863, matrix-org/matrix-react-sdk#5644, and matrix-org/matrix-react-sdk#8219 |
Description
This is probably not very high on the fix it list, but here we go:
Tooltips/popovers get cut off instead of switching sides. This is best revealed when using Riot on a portrait monitor (1200x1920) and the right sidebar collapsed. If the right sidebar is not collapsed, the popover appears normally (see screenshots).
Steps to reproduce
I would have expected it to flip to the other side, instead of overflowing. Granted, this is affecting a very limited number of people (me).
Log: not sent
Note: GitHub does not show the white bar on the right of the image - this is the boundary between Chrome and my other monitor
Version information
The text was updated successfully, but these errors were encountered: