RCFilters: Work around Chrome browser bug in filter menu
authorRoan Kattouw <roan.kattouw@gmail.com>
Wed, 18 Jul 2018 17:41:18 +0000 (19:41 +0200)
committerRoan Kattouw <roan.kattouw@gmail.com>
Wed, 18 Jul 2018 17:41:18 +0000 (19:41 +0200)
For some reason, the presence of any padding whatsoever makes the menu
items a lot taller, and the amount of padding doesn't actually cause any
visual change at all (it looks the same with 1px and 6px of padding).

Bug: T199932
Change-Id: If294de0f9dfa48583243ba53d74b0ea66d021839

resources/src/mediawiki.rcfilters/styles/mw.rcfilters.ui.ItemMenuOptionWidget.less

index ad0bc4a..1cc48e2 100644 (file)
                        display: block;
                        padding-top: 1em;
                }
+
+               label {
+                       // Workaround for Chrome browser bug (T199932)
+                       // Override padding rule from FieldLayout
+                       padding-left: 0 !important; /* stylelint-disable-line declaration-no-important */
+               }
        }
 
        .mw-rcfilters-ui-cell {