The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 22, 10:45 UTC
fix(web): plain text code blocks match the text around them (#27144)
Co-authored-by: profboba <324116041+profboba@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: maria-rcks <maria@kuuro.net>
profboba committed
Oct 30, 2026 at 23:24 UTC
609dd0f7dd9da7efaf49fda9c294d638a1422272
1 file changed
+14
apps/web/src/index.css
+14
@@ -2181,6 +2181,20 @@ code {
2181
background: transparent !important;
2182
}
2183
2184
+/* Plain-text fences override the highlighter's inline foreground colors. */
2185
+:is(.chat-markdown, .composer-tiptap)
2186
+ .chat-markdown-codeblock:is(
2187
+ [data-language="text" i],
2188
+ [data-language="txt" i],
2189
+ [data-language="plain" i],
2190
+ [data-language="plaintext" i]
2191
+ ) {
2192
+ &,
2193
+ & :is(pre, pre *) {
2194
+ color: inherit !important;
2195
+ }
2196
+}
2197
+
2198
/* Paragraphs and code blocks arrive in chunks while a response streams. Fade
2199
each new block in so the chunk does not pop. @starting-style only applies
2200
when an element is first inserted, and the rule is gated on data-streaming,