pydata-sphinx-theme
pydata-sphinx-theme copied to clipboard
FIX: Fix equation scrolling behavior
This makes a few CSS fixes to our equation scrolling behavior. Here's the summary:
- It makes the block-level equation scroll at the
mth-container
level, instead of thediv.math
level. This means that the equation label will always show up and only the equation will scroll. - This also fixes the "scrolled to the right" bug, and closes https://github.com/pydata/pydata-sphinx-theme/issues/857
- It also cleans up the
overflow: hidden
behavior in general, and also closes https://github.com/pydata/pydata-sphinx-theme/issues/858 (it also supercedes https://github.com/pydata/pydata-sphinx-theme/pull/871 but happy to merge that one first and incorporate here if @drammock prefers)
- happy to merge that one first and incorporate here if @drammock prefers)
No preference, that was a one-liner that just took a couple minutes
rendering looks good. https://pydata-sphinx-theme--872.org.readthedocs.build/en/872/user_guide/theme-elements.html#mathematics
+1 for merge when CIs come back green.