Fix category column count regression
authorMormegil <mormegil@centrum.cz>
Fri, 24 Apr 2015 14:51:30 +0000 (16:51 +0200)
committerMormegil <mormegil@centrum.cz>
Fri, 24 Apr 2015 15:11:54 +0000 (17:11 +0200)
T55130 redesigned category view to use dynamic CSS-based columns
instead of the old fixed 3-column layout. The design was updated
in I20b68dea8f, setting the column width to 25em.

However, on 1280px screen, this reduces the layout to just 2 columns,
as 3 columns do not fit: With the default 14px font, 25em translates
to 350px of column width, plus 1em of column-gap, therefore, 1078px
of space would be required for three columns. However, a 1280px
screen seems to have only 1038px left for content, so 40px are
missing.

By reducing the column size slightly to 24em, three columns are back.

Bug: T55130
Change-Id: I2dbecf809c54d786579bdf3826efbf85ad822c7c

resources/src/mediawiki.action/mediawiki.action.view.categoryPage.less

index f01115b..387b020 100644 (file)
@@ -2,7 +2,7 @@
 
 .mw-category {
        .column-count(3);
-       .column-width(25em);
+       .column-width(24em);
        .mw-category-group {
                li {
                        .column-break-inside-avoid;