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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(css): text wrap in code blocks #102

Merged
merged 1 commit into from Aug 9, 2023

Conversation

mateusabelli
Copy link
Contributor

This patch fixes the text wrapping that happens on mobile view. When the code starts wrapping it becomes harder to read it.

Before After
before after

I applied a few styles to the global code tag on the base.css file.

  • white-space: pre 馃憟 "Sequences of white space are preserved. Lines are only broken at newline characters in the source and at br elements." - MDN
  • overflow: scroll 馃憟 "Overflow content is clipped at the element's padding box, and overflow content can be scrolled into view using scroll bars." - MDN

Please let me know what do you think.

@satnaing
Copy link
Owner

satnaing commented Aug 9, 2023

Looks better!
Thanks for your PR.
Cheers!

@satnaing satnaing merged commit 0c92492 into satnaing:main Aug 9, 2023
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.

None yet

2 participants