Skip to content
TypeScript

fix(web): code blocks no longer jump when highlighting finishes (#20923)

Akash Moradiya219b3c282094
diff --git a/apps/web/src/index.css b/apps/web/src/index.css
index 90f204d201f..183bb1c8658 100644
--- a/apps/web/src/index.css
+++ b/apps/web/src/index.css
@@ -1710,6 +1710,7 @@ code {
Inline code stays relative to its sentence so it never towers over prose;
diffs and file previews take the size through --diffs-font-size. */
.chat-markdown .chat-markdown-shiki .shiki,
+.chat-markdown .chat-markdown-codeblock pre,
:is(.chat-markdown, .composer-tiptap) pre code {
font-size: var(--font-size-code, inherit);
}