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
Readthedocs Theme: Force break of inline code #313
Comments
So, this is an issue if the line is too long? Any ideas how you would fix it in CSS? |
Just use |
Wouldn't we want horizontal scrolling instead. I don't think we should ever wrap code lines. |
@tomchristie I strongly disagree. Scrolling might be fine for blocks of code (even there most of the time it annoys me), but it definitely isn't for inline code. |
A screenshot example would probably be a good idea. I'd expect inline code to fall onto the next line as a single block if it's too long, no? |
I think the issue is when the single block is winder than the width of the device. |
Okay, that's super helpful. Second case to compare here would be when the block is inline with text before. Say we have...
We wouldn't want that kind of wrapping. However this makes it look to me like the The long word still starts on a newline, and only breaks if it's longer than the entire viewport which is what I'd want to see. |
Using the ReadTheDocs theme, inline code
should be forced to break, so that it does not break the responsive layout.
The text was updated successfully, but these errors were encountered: