Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
rendered_markdown: Reduce space between paragraphs and nested lists.
Karl Stolley95dfb4aa4132
diff --git a/web/styles/rendered_markdown.css b/web/styles/rendered_markdown.cssindex d107ec63bc7..756e92f99d8 100644--- a/web/styles/rendered_markdown.css+++ b/web/styles/rendered_markdown.css@@ -82,6 +82,16 @@}}+ & ul,+ & ol {+ & p:has(+ ul, + ol) {+ /* When a paragraph inside a list is immediately followed+ by a list sibling, we reduce the paragraph's ordinary+ bottom space by half. */+ margin-bottom: calc(var(--markdown-interelement-space-px) / 2);+ }+ }+/* To avoid cutting off the focus ring on links, we setpadding on first children most likely to take links.We account for this extra space on `.message_content`. */