Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
markdown: Clarify and reorder margin and padding on KaTeX.
Karl Stolley6e32ce9084e6
diff --git a/web/styles/rendered_markdown.css b/web/styles/rendered_markdown.cssindex 282c1d16591..b687c2643dc 100644--- a/web/styles/rendered_markdown.css+++ b/web/styles/rendered_markdown.css@@ -219,10 +219,11 @@/* LaTeX styling */.katex-display {/* 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;+ enlarge its scrolling area by adding 3px of padding to its top+ and bottom. To prevent what will appear as extra whitespace,+ we reduce surrounding margins by the same 3px. */padding: 3px 0;+ margin: -3px 0;overflow: auto hidden;}