From e0fce68e46face88fedad5b5afadb3de06b5787c Mon Sep 17 00:00:00 2001 From: Florian Date: Wed, 8 Jun 2016 22:32:09 +0200 Subject: [PATCH] Add a visual clear to Special:Search input box and profile-tabs Follow up: I698d9728c70cfee5693594f2f1e0513c942aa2cd Bug: T137285 Change-Id: I4a41d549ae40965d0698234ea308d14f9b14edcb --- includes/specials/SpecialSearch.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/specials/SpecialSearch.php b/includes/specials/SpecialSearch.php index b98ddda1af..36ea983893 100644 --- a/includes/specials/SpecialSearch.php +++ b/includes/specials/SpecialSearch.php @@ -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; -- 2.20.1