[MediaWiki-commits] [Gerrit] Ensure the formula preview in MathDialog is vertically centered - change (mediawiki...Math)
jenkins-bot has submitted this change and it was merged. Change subject: Ensure the formula preview in MathDialog is vertically centered .. 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 --- M modules/ve-math/ve.ui.MWMathDialog.css 1 file changed, 5 insertions(+), 0 deletions(-) Approvals: Esanders: Looks good to me, approved jenkins-bot: Verified diff --git a/modules/ve-math/ve.ui.MWMathDialog.css b/modules/ve-math/ve.ui.MWMathDialog.css index 7098c57..00bbe1b 100644 --- a/modules/ve-math/ve.ui.MWMathDialog.css +++ b/modules/ve-math/ve.ui.MWMathDialog.css @@ -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; -- To view, visit https://gerrit.wikimedia.org/r/255462 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I77d9b213a31d3005212c8c11874112ddb64aa74a Gerrit-PatchSet: 2 Gerrit-Project: mediawiki/extensions/Math Gerrit-Branch: master Gerrit-Owner: Tchanders Gerrit-Reviewer: Esanders Gerrit-Reviewer: Physikerwelt Gerrit-Reviewer: TheDJ Gerrit-Reviewer: jenkins-bot <> ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] Ensure the formula preview in MathDialog is vertically centered - change (mediawiki...Math)
Tchanders has uploaded a new change for review. https://gerrit.wikimedia.org/r/255462 Change subject: Ensure the formula preview in MathDialog is vertically centered .. 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 --- M modules/ve-math/ve.ui.MWMathDialog.css 1 file changed, 5 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Math refs/changes/62/255462/1 diff --git a/modules/ve-math/ve.ui.MWMathDialog.css b/modules/ve-math/ve.ui.MWMathDialog.css index 7098c57..00bbe1b 100644 --- a/modules/ve-math/ve.ui.MWMathDialog.css +++ b/modules/ve-math/ve.ui.MWMathDialog.css @@ -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; -- To view, visit https://gerrit.wikimedia.org/r/255462 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I77d9b213a31d3005212c8c11874112ddb64aa74a Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Math Gerrit-Branch: master Gerrit-Owner: Tchanders ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits