pydata-sphinx-theme icon indicating copy to clipboard operation
pydata-sphinx-theme copied to clipboard

Some inline equations have vertical scrollbars

Open choldgraf opened this issue 1 year ago • 2 comments

Some of the inline equations have vertical scrollbars. This isn't true for all of them. For example:

image

From: https://pydata-sphinx-theme.readthedocs.io/en/latest/user_guide/theme-elements.html#mathematics

choldgraf avatar Aug 06 '22 13:08 choldgraf

I don't actually see this behavior (in Firefox for Linux) but I do see it in Chromium. Injecting style="overflow-y: hidden;" into the span class="math notranslate nohighlight" that surrounds the mjx-container fixes it in Chromium for me. I'll make a PR.

drammock avatar Aug 12 '22 22:08 drammock

Just a quick note that I tried to fix the scrolling bug noted in #857 and the fix there also fixed this one as well. Didn't meant to supercede your PR @drammock but just FYI!

  • https://github.com/pydata/pydata-sphinx-theme/pull/872

choldgraf avatar Aug 13 '22 13:08 choldgraf