Ensure the formula preview in MathDialog is vertically centered

The formula preview is not centered when the display attribute
is set to block. Correct this by enforcing display: inline-block
when the math image is inside the preview element.

Bug: T119670
Change-Id: I77d9b213a31d3005212c8c11874112ddb64aa74a
This commit is contained in:
Thalia 2015-11-25 14:14:00 -08:00
parent a48a216171
commit bd36680d21
1 changed files with 5 additions and 0 deletions

View File

@ -70,6 +70,11 @@
height: 10em;
}
/* Ensures the preview image is vertically centred */
.ve-ui-mwMathDialog-preview .mwe-math-fallback-image-display {
display: inline-block;
}
.ve-ui-mwMathPage-outline {
padding: 0.5em;
color: #555;