Setting flexible width on Special:Search results
authorJan Drewniak <jan.drewniak@gmail.com>
Wed, 5 Oct 2016 09:06:09 +0000 (11:06 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Wed, 5 Oct 2016 15:33:48 +0000 (15:33 +0000)
Because the search results are set to a static
width of 38em, they cause horizontal scrolling
on mobile devices. This patch changes the CSS
width to a max-width instead.

Bug: T138108
Change-Id: I14dbc6877d93183c523ce4ece57ec5968d4941cf

resources/src/mediawiki.special/mediawiki.special.search.styles.css

index a523d5b..5191f92 100644 (file)
@@ -31,7 +31,7 @@
 }
 .searchresult {
        font-size: 95%;
-       width: 38em;
+       max-width: 38em;
 }
 .mw-search-results {
        margin-left: 0;