Merge "Add scrollbars to displaystyle formulae"

This commit is contained in:
jenkins-bot 2017-01-17 18:51:13 +00:00 committed by Gerrit Code Review
commit cb190d507d
2 changed files with 6 additions and 1 deletions

View File

@ -446,7 +446,7 @@ class MathMathML extends MathRenderer {
} else {
$element = 'span';
}
$attribs = [];
$attribs = [ 'class' => 'mwe-math-element' ];
if ( $this->getID() !== '' ) {
$attribs['id'] = $this->getID();
}

View File

@ -57,3 +57,8 @@ generated by Mathoid. See https://gerrit.wikimedia.org/r/#/c/166213/ */
img.tex {
vertical-align: middle;
}
.mwe-math-element {
overflow-x: auto;
max-width: 100%;
}