diff --git a/lib/web/frontend/src/style/post-layout.scss b/lib/web/frontend/src/style/post-layout.scss index 4e8a20d..c44d0fc 100644 --- a/lib/web/frontend/src/style/post-layout.scss +++ b/lib/web/frontend/src/style/post-layout.scss @@ -23,6 +23,11 @@ } } + pre[class*="language-"] { + // Code should not enlargen mobile layouts, so remove 40px for padding. + max-width: calc(100vw - 20px * 2); + } + iframe.youtube { display: block; width: 100%;