cloudfour/cloudfour.com-patterns

Code blocks in comments have too much negative margin

tylersticka opened this issue · 1 comments

Code blocks inside of comments seem to be extending too far. In this screenshot I'm comparing the edges of the short bio in this article with the edges of the comment:

Screen Shot 2022-08-03 at 11 53 49 AM

At small sizes this causes the code block to extend past the viewport edge:

Screen Shot 2022-08-03 at 11 56 26 AM

I'm open to ideas on how to adjust for this context.

(Thanks @spaceninja for spotting this one.)

Turns out this was only affecting code blocks in comments on legacy posts. Fixing it by better scoping the styles.