From 3c9a361da0b6bad92978216633dc20d7e20f0788 Mon Sep 17 00:00:00 2001 From: "James D. Forrester" Date: Wed, 2 Dec 2015 18:28:14 -0800 Subject: [PATCH] MWMediaDialog: Add a margin back to the border checkbox This was removed upstream in OOUI as unecessary in general, but clearly this was the place for which the rule had been designed. :-) Bug: T119547 Change-Id: I46a1df1141c337b436e66872f1a8cdae026816cd --- modules/ve-mw/ui/dialogs/ve.ui.MWMediaDialog.js | 2 ++ modules/ve-mw/ui/styles/dialogs/ve.ui.MWMediaDialog.css | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/modules/ve-mw/ui/dialogs/ve.ui.MWMediaDialog.js b/modules/ve-mw/ui/dialogs/ve.ui.MWMediaDialog.js index d2b3500d8b..aff4fb9f90 100644 --- a/modules/ve-mw/ui/dialogs/ve.ui.MWMediaDialog.js +++ b/modules/ve-mw/ui/dialogs/ve.ui.MWMediaDialog.js @@ -315,6 +315,8 @@ ve.ui.MWMediaDialog.prototype.initialize = function () { label: ve.msg( 'visualeditor-dialog-media-type-border' ) } ); + borderField.$element.addClass( 've-ui-mwMediaDialog-borderCheckbox' ); + // Build type fieldset this.typeFieldset.$element.append( this.typeSelect.$element, diff --git a/modules/ve-mw/ui/styles/dialogs/ve.ui.MWMediaDialog.css b/modules/ve-mw/ui/styles/dialogs/ve.ui.MWMediaDialog.css index 54ac1ef852..49a34ed324 100644 --- a/modules/ve-mw/ui/styles/dialogs/ve.ui.MWMediaDialog.css +++ b/modules/ve-mw/ui/styles/dialogs/ve.ui.MWMediaDialog.css @@ -72,3 +72,7 @@ .ve-ui-mwMediaDialog-caption-fielset.oo-ui-labelElement.oo-ui-fieldsetLayout { margin-top: 0; } + +.ve-ui-mwMediaDialog-borderCheckbox { + margin-top: 0.4em; +}