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
.mw-debug {
width: 100%;
- text-align: left;
background-color: #eee;
border-top: 1px solid #aaa;
}
buildHtml: function () {
var $container, $bits, panes, id, gitInfo;
- $container = $( '<div id="mw-debug-toolbar" class="mw-debug"></div>' );
+ $container = $( '<div id="mw-debug-toolbar" class="mw-debug" lang="en" dir="ltr"></div>' );
$bits = $( '<div class="mw-debug-bits"></div>' );
.text( 'Time: ' + this.data.time.toFixed( 5 ) );
bitDiv( 'memory' )
- .text( 'Memory: ' + this.data.memory )
- .append( $( '<span title="Peak usage"></span>' ).text( ' (' + this.data.memoryPeak + ')' ) );
-
+ .text( 'Memory: ' + this.data.memory + ' (Peak: ' + this.data.memoryPeak + ')' );
$bits.appendTo( $container );