Skip to content

Commit adb8165

Browse files
committed
solving issue still
1 parent d17dd51 commit adb8165

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

_layouts/default.html

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
}
1717

1818
main {
19-
max-width: 850px; /* limit width for readability */
20-
margin: 3rem auto; /* center content */
21-
padding: 0 1.5rem; /* left/right padding on mobile */
19+
max-width: 850px;
20+
margin: 3rem auto;
21+
padding: 0 1.5rem;
2222
background-color: white;
2323
border-radius: 8px;
2424
box-shadow: 0 2px 8px rgba(0,0,0,0.05);
@@ -67,17 +67,21 @@
6767
a:hover {
6868
text-decoration: underline;
6969
}
70-
/* Wrap long MathJax equations so they scroll horizontally */
70+
71+
/* ✅ Scrollable long equations */
7172
.math-display {
7273
overflow-x: auto !important;
7374
overflow-y: hidden;
7475
max-width: 100%;
75-
-webkit-overflow-scrolling: touch; /* smooth scrolling on mobile */
76+
-webkit-overflow-scrolling: touch;
77+
}
78+
79+
.math-display > .MathJax {
80+
padding-bottom: 0.5rem;
7681
}
7782

78-
/* Add a little padding below equations */
7983
.math-display::-webkit-scrollbar {
80-
height: 2px;
84+
height: 8px;
8185
}
8286
.math-display::-webkit-scrollbar-thumb {
8387
background: #ccc;

0 commit comments

Comments
 (0)