You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is no similar request on existing issues (including closed ones).
I have read the project progress and know the current progress of the project.
I was in the master branch of the latest code.
Is your feature request related to a problem? Please describe
Currently, long equations rendered by MathJax tend to overflow the post content onto the right side navigational toc. For instance, when I included the following equation
This problem is very stark when viewing on a mobile, even relatively small equations tend to get cut off and the rest of the equation is not viewable.
Describe the solution you'd like
Ideally, I would like to have the ability to scroll through the equation horizontally when it exceeds the width of the post. Similar to how code blocks behave.
Describe alternatives you've considered
I've currently hacked together a solution to enable horizontal scrolling for equations by including the following piece of code1 in the _sass/addon/commons.scss file
This is the way my hacky solution seems to work (also demo here)
scroll.mov
I haven't tested it extensively, but this seems to work well both on the desktop and on the mobile while retaining your beautiful scroll feature (i.e. scroll is hidden when the mouse pointer is not in the block).
Additional context
I would have made a pull request but I wasn't sure if this was the best solution or if there was a better place to put this piece of code. My web dev skills are equivalent to those of infants.
Checklist
master
branch of the latest code.Is your feature request related to a problem? Please describe
Currently, long equations rendered by MathJax tend to overflow the post content onto the right side navigational toc. For instance, when I included the following equation
This problem is very stark when viewing on a mobile, even relatively small equations tend to get cut off and the rest of the equation is not viewable.
Describe the solution you'd like
Ideally, I would like to have the ability to scroll through the equation horizontally when it exceeds the width of the post. Similar to how code blocks behave.
Describe alternatives you've considered
I've currently hacked together a solution to enable horizontal scrolling for equations by including the following piece of code1 in the
_sass/addon/commons.scss
fileThis is the way my hacky solution seems to work (also demo here)
scroll.mov
I haven't tested it extensively, but this seems to work well both on the desktop and on the mobile while retaining your beautiful scroll feature (i.e. scroll is hidden when the mouse pointer is not in the block).
Additional context
I would have made a pull request but I wasn't sure if this was the best solution or if there was a better place to put this piece of code. My web dev skills are equivalent to those of infants.
Footnotes
StackOverflow Answer ↩
The text was updated successfully, but these errors were encountered: