Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
message_row: Better target first children.
Karl Stolley46b33f0d26fd
diff --git a/web/styles/message_row.css b/web/styles/message_row.cssindex 554f2787bc7..50963f40356 100644--- a/web/styles/message_row.css+++ b/web/styles/message_row.css@@ -156,6 +156,16 @@position: relative;overflow: hidden;+ /* For the sake of paragraphs and lists that include+ links, we adjust the vertical space here to keep+ it uniform. */+ &:has(> p:first-child, > ol:first-child, > ul:first-child) {+ padding-top: calc(+ var(--message-box-markdown-aligned-vertical-space) -+ var(--message-box-link-focus-ring-block-padding)+ );+ }+&:empty {display: none;}@@ -381,16 +391,6 @@grid-area: message;}- /* For the sake of paragraphs and lists that include- links, we adjust the vertical space here to keep- it uniform. */- .message_content:has(p:first-child, ol:first-child, ul:first-child) {- padding-top: calc(- var(--message-box-markdown-aligned-vertical-space) -- var(--message-box-link-focus-ring-block-padding)- );- }-.slow-send-spinner {align-self: center;position: unset;diff --git a/web/styles/rendered_markdown.css b/web/styles/rendered_markdown.cssindex ec18eada70a..7477491b5a8 100644--- a/web/styles/rendered_markdown.css+++ b/web/styles/rendered_markdown.css@@ -23,9 +23,9 @@/* 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`. */- & p:first-child,- & ul:first-child,- & ol:first-child {+ & > p:first-child,+ & > ul:first-child,+ & > ol:first-child {padding-top: var(--message-box-link-focus-ring-block-padding);}