From 13a36664d38a2b02841480c6864e7484ed261287 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Tue, 24 Jan 2012 16:25:41 +0000 Subject: [PATCH] diff: align cell content to the top This is needed when both sides are unbalanced. For example when a very long paragraph is replaced by a single sentence, the text in the right cell will be floating in the middle. Example using ?action=render-ascii: PRE PATCH: +----------------+ +----------------+ |eeeeeeeeeeeeeeee| | | |eeeeeeeeeeeeeeee| | | |eeeeeeeeeeeeeeee| | lot of e | |eeeeeeeeeeeeeeee| | | |eeeeeeeeeeeeeeee| | | +----------------+ +----------------+ POST PATCH: +----------------+ +----------------+ |eeeeeeeeeeeeeeee| | lot of e | |eeeeeeeeeeeeeeee| | | |eeeeeeeeeeeeeeee| | | |eeeeeeeeeeeeeeee| | | |eeeeeeeeeeeeeeee| | | +----------------+ +----------------+ Part of: bug 33335 - new color scheme and text display for diffs follow r107127 --- resources/mediawiki.action/mediawiki.action.history.diff.css | 1 + 1 file changed, 1 insertion(+) diff --git a/resources/mediawiki.action/mediawiki.action.history.diff.css b/resources/mediawiki.action/mediawiki.action.history.diff.css index 46f45bc257..7ad6b3e672 100644 --- a/resources/mediawiki.action/mediawiki.action.history.diff.css +++ b/resources/mediawiki.action/mediawiki.action.history.diff.css @@ -19,6 +19,7 @@ td.diff-addedline, td.diff-deletedline, td.diff-context { font-size: 88%; + vertical-align: top; white-space: -moz-pre-wrap; white-space: pre-wrap; } -- 2.20.1