Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

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

Anders Kaseorge642b8e7773b
diff --git a/static/styles/rendered_markdown.css b/static/styles/rendered_markdown.css
index 23670657d87..13f204822e1 100644
--- a/static/styles/rendered_markdown.css
+++ b/static/styles/rendered_markdown.css
@@ -156,7 +156,12 @@
/* LaTeX styling */
.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 {