From 8272d56034b1d85a19e81eb621dcc50b8c78ed00 Mon Sep 17 00:00:00 2001 From: Happy-melon Date: Thu, 29 Oct 2009 14:15:20 +0000 Subject: [PATCH] Use CSS rather than hardcoded nbsps to add space before the sorting arrows in SortableTables. The nbsps cause headers to be pushed off-centre when the arrow wraps to the next line; the symmetrical margin ensures that the arrows are themselves centred when that happens. --- includes/DefaultSettings.php | 2 +- skins/common/shared.css | 5 +++++ skins/common/wikibits.js | 3 +-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 99c0d887d3..439a08f805 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -1605,7 +1605,7 @@ $wgCacheEpoch = '20030516000000'; * to ensure that client-side caches do not keep obsolete copies of global * styles. */ -$wgStyleVersion = '249'; +$wgStyleVersion = '250'; # Server-side caching: diff --git a/skins/common/shared.css b/skins/common/shared.css index c4fcb42eca..9409ee40c7 100644 --- a/skins/common/shared.css +++ b/skins/common/shared.css @@ -815,3 +815,8 @@ td.mw-enhanced-rc { background-position: middle middle; background-repeat: no-repeat; } + +/* Sort arrows added by SortableTables */ +a.sortheader { + margin: 0 0.3em; +} diff --git a/skins/common/wikibits.js b/skins/common/wikibits.js index 188a438e3c..0485cdff98 100644 --- a/skins/common/wikibits.js +++ b/skins/common/wikibits.js @@ -534,8 +534,7 @@ function ts_makeSortable(table) { for (var i = 0; i < firstRow.cells.length; i++) { var cell = firstRow.cells[i]; if ((" "+cell.className+" ").indexOf(" unsortable ") == -1) { - cell.innerHTML += '  ' - + '' + '' + '