kentcdodds/old-kentcdodds.com

Code samples don't wrap long lines, can't read

Closed this issue · 1 comments

Screenshot 2019-05-21 at 16 03 11

The code blocks have a max width and don't wrap. Something is missing like white-space: pre-wrap; or code samples with lines already wrapped down to the mobile breakpoint. Not sure of the solution, just wanted to mention that readability issue. (especially for those without easy horizontal scrolling device like myself today)

Other than that, thanks for the great content, I'm always happy to read your new stuff 👍

Thanks @pandaiolo,

I don't want to wrap the code as I think that would make it harder to read, however I've expanded the code blocks width a bit and for that specific blog post code snippet I made one of the comments multi-line so it fits better. Thanks!