Mooeypoo has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/339572 )
Change subject: RCFilters UI: Fix CapsuleItemWidget popup styling ...................................................................... RCFilters UI: Fix CapsuleItemWidget popup styling Bug: T158006 Change-Id: I83f72273bc5bf7bd9548d60efd094e427ff0e13a --- M resources/src/mediawiki.rcfilters/styles/mw.rcfilters.ui.CapsuleItemWidget.less M resources/src/mediawiki.rcfilters/ui/mw.rcfilters.ui.CapsuleItemWidget.js 2 files changed, 7 insertions(+), 10 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/72/339572/1 diff --git a/resources/src/mediawiki.rcfilters/styles/mw.rcfilters.ui.CapsuleItemWidget.less b/resources/src/mediawiki.rcfilters/styles/mw.rcfilters.ui.CapsuleItemWidget.less index 0bf6f58..65278f9 100644 --- a/resources/src/mediawiki.rcfilters/styles/mw.rcfilters.ui.CapsuleItemWidget.less +++ b/resources/src/mediawiki.rcfilters/styles/mw.rcfilters.ui.CapsuleItemWidget.less @@ -1,13 +1,9 @@ @import "mw.rcfilters.mixins"; .mw-rcfilters-ui-capsuleItemWidget { - &-popup { - padding: 1em; - } - - .oo-ui-popupWidget { - // Fix the positioning of the popup itself - margin-top: 1em; + &-popup-content { + padding: 0.5em; + color: #54595d; } .oo-ui-labelElement-label { diff --git a/resources/src/mediawiki.rcfilters/ui/mw.rcfilters.ui.CapsuleItemWidget.js b/resources/src/mediawiki.rcfilters/ui/mw.rcfilters.ui.CapsuleItemWidget.js index a547020..4ab3681 100644 --- a/resources/src/mediawiki.rcfilters/ui/mw.rcfilters.ui.CapsuleItemWidget.js +++ b/resources/src/mediawiki.rcfilters/ui/mw.rcfilters.ui.CapsuleItemWidget.js @@ -14,7 +14,7 @@ */ mw.rcfilters.ui.CapsuleItemWidget = function MwRcfiltersUiCapsuleItemWidget( controller, model, config ) { var $popupContent = $( '<div>' ) - .addClass( 'mw-rcfilters-ui-capsuleItemWidget-popup' ), + .addClass( 'mw-rcfilters-ui-capsuleItemWidget-popup-content' ), descLabelWidget = new OO.ui.LabelWidget(); // Configuration initialization @@ -34,11 +34,12 @@ // Mixin constructors OO.ui.mixin.PopupElement.call( this, $.extend( { popup: { - padded: true, + padded: false, align: 'center', $content: $popupContent .append( descLabelWidget.$element ), - $floatableContainer: this.$element + $floatableContainer: this.$element, + classes: [ 'mw-rcfilters-ui-capsuleItemWidget-popup' ] } }, config ) ); -- To view, visit https://gerrit.wikimedia.org/r/339572 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I83f72273bc5bf7bd9548d60efd094e427ff0e13a Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Mooeypoo <mor...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits