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

Layout breaks on certain screens #207

Closed
arothuis opened this issue Dec 7, 2022 · 3 comments
Closed

Layout breaks on certain screens #207

arothuis opened this issue Dec 7, 2022 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@arothuis
Copy link

arothuis commented Dec 7, 2022

I noticed this in the cli reference when I visited on my phone (here emulated in Chrome):

image

The culprit in this case seems to be the following <code> block:
image

This behavior is caused by white-space: nowrap;. A fix would be to use a block-element like <pre> or style the wrapping differently (e.g. white-space: normal or white-space: pre-line) on this one.

Additionally, we could consider a block element with overflow-x: auto. This presents a scrollable code-block on screens that lack horizontal space.

@lpil
Copy link
Member

lpil commented Dec 7, 2022

Oh dear! Thank you

@lpil lpil self-assigned this Dec 7, 2022
@lpil lpil added the bug Something isn't working label Dec 7, 2022
@HatGuy68
Copy link
Contributor

The issue seems to be happening because <code> has the CSS property of white-space: nowrap;.

@lpil lpil closed this as completed in b9b890e Dec 20, 2022
@lpil
Copy link
Member

lpil commented Dec 20, 2022

Thank you @HatGuy68

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

No branches or pull requests

3 participants