From 1591171df974965eb76d638a6d21562fe642d52c Mon Sep 17 00:00:00 2001 From: aude Date: Mon, 17 Sep 2012 15:14:09 +0000 Subject: [PATCH] add dir='ltr' to non-localized debug toolbar stuff It might be nice to localize this stuff; until then, it is rather annoying to look at broken parentheses when using MediaWiki and the toolbar in a RTL language. Removed text-align: left, so it won't be flipped. Added an explicit label for Peak memory - it's clearer and it helps with LTR layout (the units are localized and confuse the display). Added lang="en" dir="ltr" to the main containter, which is the right thing until it's properly localized. Change-Id: I1d0ef6d12eefac0ff28277e4cc2dbc62acd9eee2 --- resources/mediawiki/mediawiki.debug.css | 1 - resources/mediawiki/mediawiki.debug.js | 6 ++---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/resources/mediawiki/mediawiki.debug.css b/resources/mediawiki/mediawiki.debug.css index 149e1bffc3..513cb8475b 100644 --- a/resources/mediawiki/mediawiki.debug.css +++ b/resources/mediawiki/mediawiki.debug.css @@ -1,6 +1,5 @@ .mw-debug { width: 100%; - text-align: left; background-color: #eee; border-top: 1px solid #aaa; } diff --git a/resources/mediawiki/mediawiki.debug.js b/resources/mediawiki/mediawiki.debug.js index 1ad1a623ab..88af3c653d 100644 --- a/resources/mediawiki/mediawiki.debug.js +++ b/resources/mediawiki/mediawiki.debug.js @@ -96,7 +96,7 @@ buildHtml: function () { var $container, $bits, panes, id, gitInfo; - $container = $( '
' ); + $container = $( '
' ); $bits = $( '
' ); @@ -187,9 +187,7 @@ .text( 'Time: ' + this.data.time.toFixed( 5 ) ); bitDiv( 'memory' ) - .text( 'Memory: ' + this.data.memory ) - .append( $( '' ).text( ' (' + this.data.memoryPeak + ')' ) ); - + .text( 'Memory: ' + this.data.memory + ' (Peak: ' + this.data.memoryPeak + ')' ); $bits.appendTo( $container ); -- 2.20.1