Move white-space: nowrap from PHP to CSS
authorFomafix <fomafix@googlemail.com>
Tue, 8 Jul 2014 17:03:31 +0000 (17:03 +0000)
committer[[mw:User:Fomafix]] <gerritpatchuploader@gmail.com>
Tue, 8 Jul 2014 17:03:31 +0000 (17:03 +0000)
Change-Id: I5606c33456e70127e0b7b0a7dc8b0c59bab532f4

includes/specials/SpecialSearch.php
resources/src/mediawiki.special/mediawiki.special.search.css

index 47d5715..970b617 100644 (file)
@@ -893,9 +893,7 @@ class SpecialSearch extends SpecialPage {
                        }
 
                        $rows[$subject] .=
-                               Xml::openElement(
-                                       'td', array( 'style' => 'white-space: nowrap' )
-                               ) .
+                               Xml::openElement( 'td' ) .
                                Xml::checkLabel(
                                        $name,
                                        "ns{$namespace}",
index a98c782..ef95507 100644 (file)
@@ -109,6 +109,7 @@ fieldset#mw-searchoptions table {
 }
 fieldset#mw-searchoptions table td {
        padding-right: 1em;
+       white-space: nowrap;
 }
 fieldset#mw-searchoptions div.divider {
        clear: both;