From: Antoine Musso Date: Tue, 24 Jan 2012 16:25:41 +0000 (+0000) Subject: diff: align cell content to the top X-Git-Tag: 1.31.0-rc.0~25101 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=13a36664d38a2b02841480c6864e7484ed261287;p=lhc%2Fweb%2Fwiklou.git 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 --- 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; }