WLFilters: adapt to customized watchlist-details
authorStephane Bisson <sbisson@wikimedia.org>
Thu, 31 Aug 2017 12:24:24 +0000 (08:24 -0400)
committerStephane Bisson <sbisson@wikimedia.org>
Thu, 31 Aug 2017 12:24:24 +0000 (08:24 -0400)
The watchlist-details message is sometimes customized
to add community notices, which makes it much taller.

This fixes the position of the 'edit watchlist' button
so it's always right and bottom aligned regardless of
the size of the watchlist-details section.

Bug: T172030
Change-Id: I8b6b9d799f7929a1d78c8f0e30020a4222fc3bb6

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

index bbe4528..5e1e118 100644 (file)
@@ -1,7 +1,15 @@
 .mw-rcfilters-ui-watchlistTopSectionWidget {
+       &-watchlistDetails {
+               width: 100%;
+       }
+
        &-editWatchlistButton {
-               float: right;
-               margin-left: 3em;
+               vertical-align: bottom;
+
+               // actual button
+               .oo-ui-buttonWidget {
+                       margin-left: 3em;
+               }
        }
 
        &-savedLinks {