Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
message_view: Better tolerate different opening Markdown elements.
Karl Stolley4454811191c3
diff --git a/web/styles/message_row.css b/web/styles/message_row.cssindex b9a6985f4f0..7c1ca4b5d0b 100644--- a/web/styles/message_row.css+++ b/web/styles/message_row.css@@ -150,11 +150,6 @@.message_content {grid-area: message;- /*- Space between two single line messages is kept in- lockstep with adjacent Markdown elements.- */- padding: var(--message-box-markdown-aligned-vertical-space) 0 0;color: var(--color-text-message-default);/* We explicitly set line-height here so thatthe message area is not beholden to the legacy@@ -375,6 +370,7 @@}.message_content {+ padding: var(--message-box-markdown-aligned-vertical-space) 0 0;/* Pull message content up closer to sender tolet the text baseline sit adjacent the bottomof the avatar. We also need to account for thediff --git a/web/styles/rendered_markdown.css b/web/styles/rendered_markdown.cssindex 5fabcbfc910..63bf6d32add 100644--- a/web/styles/rendered_markdown.css+++ b/web/styles/rendered_markdown.css@@ -50,13 +50,6 @@border-top: 1px solid hsl(0deg 0% 87%);/* Override Bootstrap with doubled interelement space */margin: calc(var(--markdown-interelement-space-px) * 2) 0;-- &:first-child {- /* When a horizontal rule opens a message, or any other- area in the message area (e.g., spoilers), there- should be no space above the rule. */- margin-top: 0;- }}/* Headings */@@ -444,6 +437,10 @@transition: background 0.3s ease;background: hsl(0deg 0% 0% / 3%);+ &:first-child {+ margin-top: var(--markdown-interelement-space-px);+ }+&:hover {background: hsl(0deg 0% 0% / 15%);}