TitleWidget: Only apply padding fix to withImages mode
authorEd Sanders <esanders@wikimedia.org>
Tue, 3 Oct 2017 15:04:54 +0000 (16:04 +0100)
committerEd Sanders <esanders@wikimedia.org>
Tue, 3 Oct 2017 15:04:54 +0000 (16:04 +0100)
Change-Id: I60d0c3169cede2251595d68649c76823ea77afe9

resources/src/mediawiki.widgets/mw.widgets.TitleWidget.less

index 3632a42..be3c10e 100644 (file)
@@ -9,8 +9,6 @@
 .mw-widget-titleWidget-menu {
        .mw-widget-titleOptionWidget {
                line-height: normal;
-               padding-top: 0.5em;
-               padding-bottom: 0.5em;
 
                &-description {
                        color: #72777d;
@@ -22,6 +20,8 @@
                        .box-sizing( border-box );
                        min-height: 3.75em;
                        padding-left: 4.75em;
+                       padding-top: 0.5em;
+                       padding-bottom: 0.5em;
 
                        &:not( :last-child ) {
                                margin-bottom: 2px;