josephhutch/aether

Safari: sometimes code block can't scroll

Closed this issue · 8 comments

test page here, tested macOS 10.14.3/Safari and macOS 10.14.2/Safari
sometimes refresh page is OK, I check the css and found that:

Patch pre ?

pre {
    padding-top: 16px;
    padding-bottom: 16px
}

@cntrump, I will investigate this issue when I get home tonight.

@cntrump, I will investigate this issue when I get home tonight.

code block heigher than pre, I have no better idea.

BTW, I try prismjs on my blog, I feel it is better than hljs 🤣

@cntrump, I agree, I'll go ahead and change it. Does prismjs solve the code scroll issue? I really your blog background by the way!

@josephhutch , thanks, I found the background at toptal

I think it is not hljs, because I removed hljs from scripts.html, the scroll issue still here.
prismjs solved the code scroll issue, but I don't known how.

The code highlighter has moved from a js client side highlighter to Hugo's chroma highlighter. I have not observed this issue but given the changes I am going to close this issue.