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

#130: Code blocks now wrap text on screens narrower than 300px #131

Merged
merged 2 commits into from
Oct 11, 2024

Conversation

Jurredr
Copy link
Contributor

@Jurredr Jurredr commented Oct 11, 2024

Problem

For readability of the code blocks in narrow screen conditions, it is better to wrap the code block texts since horizontal scrolling will cause too much movement.

Solution

Code blocks now take on a white-space of pre-wrap on screens narrower than 300px, ensuring the code is wrapped instead of overflowing with a scroll bar.

License

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@Jurredr Jurredr self-assigned this Oct 11, 2024
@Jurredr Jurredr requested a review from a team as a code owner October 11, 2024 10:59
@Jurredr Jurredr linked an issue Oct 11, 2024 that may be closed by this pull request
@dogusata dogusata merged commit ddbfef2 into main Oct 11, 2024
1 check passed
@Jurredr Jurredr deleted the 130-make-code-blocks-wrap-the-text-on-narrow-screens branch October 16, 2024 09:41
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

Successfully merging this pull request may close these issues.

Make code blocks wrap the text on narrow screens
2 participants