observablehq / stdlib

The Observable standard library.
https://observablehq.com/@observablehq/standard-library
ISC License
966 stars 83 forks source link

Allow horizontal scrolling for wide tex.block? #109

Open mbostock opened 5 years ago

mbostock commented 5 years ago

On mobile especially, it would be nice if tex.block used overflow-x: auto so that you can read long expressions that would otherwise be cropped. Wikipedia does this, for instance.

mbostock commented 5 years ago

I tried this but it causes y-scrolling too, since KaTeX uses relatively-positioned elements that go outside the bounds of the containing element. I’m not sure how to fix this problem or if it’s possible with CSS, so I reverted.