From 4681df715118a37ae1e91b588de0adb67f4e331a Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Thu, 2 Mar 2023 05:16:18 +0800 Subject: [PATCH] fix: mathematics cannot scroll horizontally (#760) --- _sass/addon/commons.scss | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/_sass/addon/commons.scss b/_sass/addon/commons.scss index 33d19db4e16..d808f356c36 100644 --- a/_sass/addon/commons.scss +++ b/_sass/addon/commons.scss @@ -159,11 +159,6 @@ blockquote { @include prompt("danger", "\f071"); } -mjx-container { - overflow-x: auto; - overflow-y: hidden; -} - kbd { font-family: inherit; display: inline-block; @@ -679,6 +674,12 @@ figure .mfp-title { text-align: center; } +/* MathJax */ +mjx-container { + overflow-y: hidden; + min-width: auto !important; +} + /* --- sidebar layout --- */ $sidebar-display: "sidebar-display";