Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

compose: Fix incorrect preview area first/last child selectors.

Joelute82a805e286ba
diff --git a/web/styles/rendered_markdown.css b/web/styles/rendered_markdown.css
index ccc5b741d85..af957d96c36 100644
--- a/web/styles/rendered_markdown.css
+++ b/web/styles/rendered_markdown.css
@@ -659,11 +659,11 @@
.preview_content.rendered_markdown {
/* Ensure that the first child and last child
don't have blank area at the top and bottom respectively. */
- & :first-child {
+ & > :first-child {
margin-top: 0;
}
- & :last-child {
+ & > :last-child {
margin-bottom: 0;
}
}