TypeScript
fix(web): plain text code blocks match the text around them (#27144)
profboba609dd0f7dd9d
diff --git a/apps/web/src/index.css b/apps/web/src/index.cssindex 6b5f274b849..8258b200f3c 100644--- a/apps/web/src/index.css+++ b/apps/web/src/index.css@@ -2181,6 +2181,20 @@ code {background: transparent !important;}+/* Plain-text fences override the highlighter's inline foreground colors. */+:is(.chat-markdown, .composer-tiptap)+ .chat-markdown-codeblock:is(+ [data-language="text" i],+ [data-language="txt" i],+ [data-language="plain" i],+ [data-language="plaintext" i]+ ) {+ &,+ & :is(pre, pre *) {+ color: inherit !important;+ }+}+/* Paragraphs and code blocks arrive in chunks while a response streams. Fadeeach new block in so the chunk does not pop. @starting-style only applieswhen an element is first inserted, and the rule is gated on data-streaming,