rendered_markdown: Add horizontal scrollbar to overflowing ```math.

Fixes #14422.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2021-03-26 17:35:00 -07:00 committed by Tim Abbott
parent 1b8a5a3344
commit e642b8e777
1 changed files with 6 additions and 1 deletions

View File

@ -156,7 +156,12 @@
/* LaTeX styling */ /* LaTeX styling */
.katex-display { .katex-display {
margin: 0 0; /* KaTeX sometimes overdraws its bounding box by a little, so we
enlarge its scrolling area by stealing 3px from the margin
of the enclosing <p>. */
margin: -3px 0;
padding: 3px 0;
overflow: auto hidden;
} }
.tex-error { .tex-error {