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

FIX: Fix equation scrolling behavior

Open choldgraf opened this issue 1 year ago • 1 comments

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 the div.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)

choldgraf avatar Aug 13 '22 13:08 choldgraf

  • 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

drammock avatar Aug 13 '22 13:08 drammock

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.

drammock avatar Aug 16 '22 20:08 drammock