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

Long Names Exceed Mobile Viewport Width #13

Closed
mdrxy opened this issue Mar 6, 2024 · 3 comments
Closed

Long Names Exceed Mobile Viewport Width #13

mdrxy opened this issue Mar 6, 2024 · 3 comments

Comments

@mdrxy
Copy link

mdrxy commented Mar 6, 2024

On mobile displays, long names will push the navbar content off-screen, causing the width of the page to be wider than the viewport width (requiring horizontal scrolling). See:

Screenshot 2024-03-06 at 13 55 39 Screenshot 2024-03-06 at 13 55 44

I added an @media query to target mobile and a secondary shortened version of my last name to activate to address this issue, though it might be nice to have this handled by default in new sites.

Here's my repo with the workaround

@philipmjohnson
Copy link
Contributor

Thank you! I've added the media query to all of the default themes.

@philipmjohnson
Copy link
Contributor

An additional comment from @mdrxy:

Thank you! It should be noted that in order for this to take effect, users will need to add Mason D. to header.html after navbar-brand. I hard coded my abbreviated name, but adding site.data.bio.basics.shortname would probably be a more elegant solution so that it is set when people are configuring their bio during setup.

@philipmjohnson
Copy link
Contributor

The current fix means that the name simply disappears from the navbar at mobile widths, which is not optimal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants