Skip to content

Commit 4681df7

Browse files
committed
fix: mathematics cannot scroll horizontally (#760)
1 parent 7e6c667 commit 4681df7

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

_sass/addon/commons.scss

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,6 @@ blockquote {
159159
@include prompt("danger", "\f071");
160160
}
161161

162-
mjx-container {
163-
overflow-x: auto;
164-
overflow-y: hidden;
165-
}
166-
167162
kbd {
168163
font-family: inherit;
169164
display: inline-block;
@@ -679,6 +674,12 @@ figure .mfp-title {
679674
text-align: center;
680675
}
681676

677+
/* MathJax */
678+
mjx-container {
679+
overflow-y: hidden;
680+
min-width: auto !important;
681+
}
682+
682683
/* --- sidebar layout --- */
683684

684685
$sidebar-display: "sidebar-display";

0 commit comments

Comments
 (0)