From 4069de6423777a4d753fd16361897fccd0cabcc2 Mon Sep 17 00:00:00 2001 From: joyqat Date: Fri, 24 Jul 2020 10:09:48 +0800 Subject: [PATCH] Mathjax: 1. prevent clip due to x scroll 2. (IE support)add polyfill.js advised from mathjax --- assets/sass/components/_math.scss | 1 + layouts/partials/script/single-script.html | 1 + 2 files changed, 2 insertions(+) diff --git a/assets/sass/components/_math.scss b/assets/sass/components/_math.scss index d6e7579..2a66e4d 100644 --- a/assets/sass/components/_math.scss +++ b/assets/sass/components/_math.scss @@ -1,4 +1,5 @@ .MathJax { overflow-x: auto; overflow-y: hidden; + box-sizing: border-box; } diff --git a/layouts/partials/script/single-script.html b/layouts/partials/script/single-script.html index 2832470..3e39f69 100644 --- a/layouts/partials/script/single-script.html +++ b/layouts/partials/script/single-script.html @@ -46,6 +46,7 @@ } }; + {{ end }}