From 24cbd6113179967611768ea4931ef3fd572fed7d Mon Sep 17 00:00:00 2001 From: Cory Lynch Date: Wed, 17 May 2017 01:45:02 -0400 Subject: [PATCH] css: Fix KaTeX summation alignment and line wrapping. Previously, the sum (capital sigma) operator would become misaligned so that the lower and upper bounds are placed in the wrong location. Changing the line height fixes this alignment. Also, previously, wrapping long lines of TeX did not work, as often, the different lines of math would overlap with each other. Fixes #4657. --- static/styles/zulip.css | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/static/styles/zulip.css b/static/styles/zulip.css index ad5f604b84..2189e2cd2f 100644 --- a/static/styles/zulip.css +++ b/static/styles/zulip.css @@ -2058,10 +2058,14 @@ div.floating_recipient { } .katex-html { - line-height: initial; + line-height: 3em; white-space: initial; } +.katex-display { + margin: 0em 0; +} + .tex-error { color: red; }