Merge "Add scrollbars to displaystyle formulae"
This commit is contained in:
commit
cb190d507d
|
@ -446,7 +446,7 @@ class MathMathML extends MathRenderer {
|
||||||
} else {
|
} else {
|
||||||
$element = 'span';
|
$element = 'span';
|
||||||
}
|
}
|
||||||
$attribs = [];
|
$attribs = [ 'class' => 'mwe-math-element' ];
|
||||||
if ( $this->getID() !== '' ) {
|
if ( $this->getID() !== '' ) {
|
||||||
$attribs['id'] = $this->getID();
|
$attribs['id'] = $this->getID();
|
||||||
}
|
}
|
||||||
|
|
|
@ -57,3 +57,8 @@ generated by Mathoid. See https://gerrit.wikimedia.org/r/#/c/166213/ */
|
||||||
img.tex {
|
img.tex {
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.mwe-math-element {
|
||||||
|
overflow-x: auto;
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue