Closed craftyguy closed 2 years ago
I found the same problem on the index : code block text takes up the full width. But it doesn't do so on specific pages. From what I can tell, it actually comes from .posts
overflowing .content
on the index. Once you add width: 100%
it behaves normally. The code blocks themselves are on overflow: auto
and will adapt to the width they have available.
Default CSS :
Code block overflowing:
With the same CSS values as on individual pages :
Code block behaving properly:
The basic fix in /sass/post.css
:
.posts {
width: 100%;
margin: 0 auto;
}
Hi, I'm really happy to see other people using the theme. Thanks for the detailed investigation, write-up and the PR!
The fix has been merged. Thanks!
Code blocks with long lines cause the entire page to overflow/scroll horizontally, which looks really bad:
This is what I'd expect to happen in these situations:
I couldnt' get this to work by setting
overflow-x:scroll
in thepre
CSS, but I did get it to work when I wrapped the<pre>
in a<div style="overflow-x:scroll">