From 3cc08e9fc2981c34dd7ccb5312adda63980a1372 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Thu, 17 May 2007 15:02:26 +0000 Subject: [PATCH] Another tweak for wide diffs: there *is* a CSS 3 draft property (word-wrap: break-word) which can force long words to break instead of just the scrolling hackaround. Yay! Still no love in Firefox or Opera, but fixes Internet Explorer and Safari. works in: Safari 2.0.4 MSIE 7.0/Win MSIE 6.0/Win MSIE 5.2/Mac doesn't work in: Opera 9.20 Firefox 2.0.3 Konqueror 3.5.6 iCab (wraps at punctuation but not in mid-word) --- includes/DefaultSettings.php | 2 +- skins/common/diff.css | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 1361cdad95..aaff730c55 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -1125,7 +1125,7 @@ $wgCacheEpoch = '20030516000000'; * to ensure that client-side caches don't keep obsolete copies of global * styles. */ -$wgStyleVersion = '69'; +$wgStyleVersion = '70'; # Server-side caching: diff --git a/skins/common/diff.css b/skins/common/diff.css index e2feefdcfd..0e7fd0627c 100644 --- a/skins/common/diff.css +++ b/skins/common/diff.css @@ -48,7 +48,12 @@ table.diff col.diff-content { width: 48%; } table.diff td div { - /* Scrollbars will be added for very wide cells + /* Force-wrap very long lines such as URLs or page-widening char strings. + CSS 3 draft..., but Gecko doesn't support it yet: + https://bugzilla.mozilla.org/show_bug.cgi?id=99457 */ + word-wrap: break-word; + + /* As fallback, scrollbars will be added for very wide cells instead of text overflowing or widening */ overflow: auto; } -- 2.20.1