message view: Reduce extra white space above quotes and unordered lists.

Blockquotes and unordered lists had a large amount of space above them
when preceded by a paragraph tag, which looks ugly.  This is a common
issue with the CSS rendering of essentially all markdown
implementations (e.g. GitHub has this bug).

We resolve the issue by reducing that whitespace with negative
margins.  Hopefully, this won't create other weird glitches in the
process.

Fixes #11631.
This commit is contained in:
vinitS101
2019-04-06 22:13:01 +05:30
committed by Tim Abbott
parent 93b2fa9b7c
commit 62f2396ee2

View File

@@ -1475,6 +1475,14 @@ blockquote p {
font-size: inherit;
}
.rendered_markdown p + ul {
margin-top: -7px;
}
.rendered_markdown p + blockquote {
margin-top: -4px;
}
.messagebox {
word-wrap: break-word;
cursor: pointer;