Skip to content

Commit 6b15503

Browse files
add explicit styles for code block (#8766)
1 parent fe5d321 commit 6b15503

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

web-common/src/components/markdown/Markdown.svelte

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
}
119119
120120
:global(.chat-markdown pre) {
121-
@apply bg-gray-100 text-xs;
121+
@apply bg-surface-muted border text-xs;
122122
padding: 0.5rem;
123123
border-radius: 0.25rem;
124124
margin-bottom: 0.5rem;
@@ -171,4 +171,9 @@
171171
:global(.chat-markdown tr:nth-child(even)) {
172172
@apply bg-surface-background;
173173
}
174+
175+
:global(code[class*="language-"], pre[class*="language-"]) {
176+
@apply text-fg-primary;
177+
text-shadow: none;
178+
}
174179
</style>

0 commit comments

Comments
 (0)