Add a visual clear to Special:Search input box and profile-tabs
authorFlorian <florian.schmidt.stargatewissen@gmail.com>
Wed, 8 Jun 2016 20:32:09 +0000 (22:32 +0200)
committerFlorian <florian.schmidt.stargatewissen@gmail.com>
Wed, 8 Jun 2016 20:38:29 +0000 (22:38 +0200)
Follow up: I698d9728c70cfee5693594f2f1e0513c942aa2cd

Bug: T137285
Change-Id: I4a41d549ae40965d0698234ea308d14f9b14edcb

includes/specials/SpecialSearch.php

index b98ddda..36ea983 100644 (file)
@@ -1162,7 +1162,8 @@ class SpecialSearch extends SpecialPage {
         * @return string
         */
        protected function searchProfileTabs( $term ) {
-               $out = Xml::openElement( 'div', [ 'class' => 'mw-search-profile-tabs' ] );
+               $out = Html::element( 'div', [ 'class' => 'visualClear' ] ) .
+                       Xml::openElement( 'div', [ 'class' => 'mw-search-profile-tabs' ] );
 
                $bareterm = $term;
                if ( $this->startsWithImage( $term ) ) {
@@ -1261,8 +1262,7 @@ class SpecialSearch extends SpecialPage {
                                ->numParams( $this->offset + 1, $this->offset + $resultsShown, $totalNum )
                                ->numParams( $resultsShown )
                                ->parse();
-                       $out .= Xml::tags( 'div', [ 'class' => 'results-info' ], $top ) .
-                               Xml::element( 'div', [ 'style' => 'clear:both' ], '', false );
+                       $out .= Xml::tags( 'div', [ 'class' => 'results-info' ], $top );
                }
 
                return $out;