Skip to content
TypeScript

fix(web): keep markdown separators visible in dark mode (#22367)

Zarrar5ad7da060d05
diff --git a/apps/web/src/index.css b/apps/web/src/index.css
index 8acc312321b..6b5f274b849 100644
--- a/apps/web/src/index.css
+++ b/apps/web/src/index.css
@@ -2065,8 +2065,13 @@ code {
margin: 0.65rem 0;
}
-/* Preflight already draws the 1px rule, as it does in chat; only the block
- spacing needs to match. */
+/* Surface borders can blend into dark message bubbles; rules need a readable color. */
+:is(.chat-markdown, .composer-tiptap) hr {
+ @variant dark {
+ border-color: var(--contrast-muted-foreground);
+ }
+}
+
.composer-tiptap hr {
margin: 0.65rem 0;
}