Frédéric Wang has submitted this change and it was merged.

Change subject: Use normal line-height for math elements
......................................................................


Use normal line-height for math elements

* With the current settings for example the distance between
  matrix rows is too large.

Bug: T106890
Change-Id: Iffa2534f7d39e9faf41ab11124c9b9ff571988d2
---
M modules/ext.math.css
1 file changed, 3 insertions(+), 0 deletions(-)

Approvals:
  Frédéric Wang: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/modules/ext.math.css b/modules/ext.math.css
index 6f325db..14f30ec 100644
--- a/modules/ext.math.css
+++ b/modules/ext.math.css
@@ -23,6 +23,9 @@
        /* We put Cambria before Cambria Math to workaround a bug on Windows
        (see https://bugzilla.mozilla.org/show_bug.cgi?id=598900) */
        font-family: Cambria, Cambria Math, Latin Modern Math, STIX Math, 
LatinModernMathWOFF, serif;
+       /* .mw-body-content sets the line-height to 1.6 which is not desired 
for math. For example */
+       /* matrices with brackets are rendered too large. See also 
https://phabricator.wikimedia.org/T106890 */
+       line-height: normal;
 }
 
 /* Default style for the image fallback. */

-- 
To view, visit https://gerrit.wikimedia.org/r/250710
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Iffa2534f7d39e9faf41ab11124c9b9ff571988d2
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/Math
Gerrit-Branch: master
Gerrit-Owner: Physikerwelt <w...@physikerwelt.de>
Gerrit-Reviewer: Frédéric Wang <fred.w...@free.fr>
Gerrit-Reviewer: Jforrester <jforres...@wikimedia.org>
Gerrit-Reviewer: Physikerwelt <w...@physikerwelt.de>
Gerrit-Reviewer: TheDJ <hartman.w...@gmail.com>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to