Skip to content

Commit 895a15a

Browse files
committed
fix(web): keep markdown separators visible in dark mode
1 parent 6d450a4 commit 895a15a

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

‎apps/web/src/index.css‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2065,8 +2065,13 @@ code {
20652065
margin: 0.65rem 0;
20662066
}
20672067

2068-
/* Preflight already draws the 1px rule, as it does in chat; only the block
2069-
spacing needs to match. */
2068+
/* Surface borders can blend into dark message bubbles; rules need a readable color. */
2069+
:is(.chat-markdown, .composer-tiptap) hr {
2070+
@variant dark {
2071+
border-color: var(--contrast-muted-foreground);
2072+
}
2073+
}
2074+
20702075
.composer-tiptap hr {
20712076
margin: 0.65rem 0;
20722077
}

0 commit comments

Comments
 (0)