Skip to content

Commit 38e6640

Browse files
committed
fix(web): keep markdown separators visible in dark mode
1 parent 53245cc commit 38e6640

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
@@ -1992,8 +1992,13 @@ code {
19921992
color: var(--foreground);
19931993
}
19941994

1995-
/* Preflight already draws the 1px rule, as it does in chat; only the block
1996-
spacing needs to match. */
1995+
/* Surface borders can blend into dark message bubbles; rules need a readable color. */
1996+
:is(.chat-markdown, .composer-tiptap) hr {
1997+
@variant dark {
1998+
border-color: var(--contrast-muted-foreground);
1999+
}
2000+
}
2001+
19972002
.composer-tiptap hr {
19982003
margin: 0.65rem 0;
19992004
}

0 commit comments

Comments
 (0)