Skip to content

Commit d17dd51

Browse files
committed
readability issue fix
1 parent 90d5932 commit d17dd51

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

_layouts/default.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,22 @@
6767
a:hover {
6868
text-decoration: underline;
6969
}
70+
/* Wrap long MathJax equations so they scroll horizontally */
71+
.math-display {
72+
overflow-x: auto !important;
73+
overflow-y: hidden;
74+
max-width: 100%;
75+
-webkit-overflow-scrolling: touch; /* smooth scrolling on mobile */
76+
}
77+
78+
/* Add a little padding below equations */
79+
.math-display::-webkit-scrollbar {
80+
height: 2px;
81+
}
82+
.math-display::-webkit-scrollbar-thumb {
83+
background: #ccc;
84+
border-radius: 4px;
85+
}
7086
</style>
7187
</head>
7288

index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ $$
7373
The plot below shows the displacement $x(t)$ with respect to $t$ (already containing anomalies).
7474

7575
<p align="center">
76-
<img src="plots/Damped_Oscillator_Data.png" width="70%">
76+
<img src="plots/Damped_Oscillator_Data.png" width="90%">
7777
</p>
7878

7979

0 commit comments

Comments
 (0)