diff: align cell content to the top
authorAntoine Musso <hashar@users.mediawiki.org>
Tue, 24 Jan 2012 16:25:41 +0000 (16:25 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Tue, 24 Jan 2012 16:25:41 +0000 (16:25 +0000)
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

index 46f45bc..7ad6b3e 100644 (file)
@@ -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;
 }