Skip to content

Menu button hard to hit on mobile #140

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

Closed
david-christiansen opened this issue Nov 4, 2024 · 4 comments
Closed

Menu button hard to hit on mobile #140

david-christiansen opened this issue Nov 4, 2024 · 4 comments
Labels
ASAP To be done as soon as possible HTML/CSS Problems with the HTML or CSS of the manual

Comments

@david-christiansen
Copy link
Collaborator

The menu button to open/close the table of contents is very small on my phone, and hard to target with my thumb. It should be bigger for mobile devices.

Screenshot_20241104-113055-menu-annot

@david-christiansen david-christiansen added ASAP To be done as soon as possible HTML/CSS Problems with the HTML or CSS of the manual labels Nov 4, 2024
@jakobvase
Copy link
Contributor

First problem is you're missing a header for the page to become mobile friendly.
Add <meta name="viewport" content="width=device-width, initial-scale=1"> to the headers. This tells mobile phones that this is a responsive website, and it should not try to be smart.

@jakobvase
Copy link
Contributor

Then it's a matter of increasing the padding on the button when it's shown on mobile, and changing the background color to white - potentially for a full-width, fixed header, because a floating white square looks weird. You could also move the Preview Release banner into the fixed header on mobile in that case. It takes up a lot of space otherwise.

@david-christiansen
Copy link
Collaborator Author

What would you do for a full-width fixed header when it goes into mobile mode? I worry about taking up valuable real estate from the text. Is there some other nice way than a square? What about a white border around the dark lines that make up the burger/X, together with making them larger with a touchscreen media query?

The "Preview Release" banner has only a few more days to live, so I won't worry about it.

@david-christiansen
Copy link
Collaborator Author

Fixed in #148 - thanks for the help, @jakobvase!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ASAP To be done as soon as possible HTML/CSS Problems with the HTML or CSS of the manual
Projects
None yet
Development

No branches or pull requests

2 participants