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

Fix in-app-menu squishing sub-menu items #1276

Merged
merged 1 commit into from
Oct 8, 2023
Merged

Conversation

jkrei0
Copy link
Contributor

@jkrei0 jkrei0 commented Oct 8, 2023

Previously, when using the in-app-menu plugin, menu children at the bottom of the screen would get squished, especially when there were multiple layers of children:

Show Image

ytm_menu_very_squished

This fixes this by checking if a child menu can scroll (meaning it is squished), and instead positioning it by the bottom of the element:

Show Image

ytm_menu_fixed

The max-height property is also adjusted to prevent the menu from going off of the screen.


The only potential caveat is that long child menus near the top of the screen will actually have their size reduced, but I don't think this is a real problem as none of the menus (that I know of) are like this:

Show Image

image

@JellyBrick JellyBrick added the bug Something isn't working label Oct 8, 2023
@JellyBrick JellyBrick self-requested a review October 8, 2023 03:33
@JellyBrick JellyBrick merged commit b7b6d50 into th-ch:master Oct 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants