File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " ai-elements " : patch
3+ ---
4+
5+ add scroll behavior to code block
Original file line number Diff line number Diff line change @@ -109,12 +109,12 @@ export const CodeBlock = ({
109109 >
110110 < div className = "relative" >
111111 < div
112- className = "overflow-hidden dark:hidden [&>pre]:m-0 [&>pre]:bg-background! [&>pre]:p-4 [&>pre]:text-foreground! [&>pre]:text-sm [&_code]:font-mono [&_code]:text-sm"
112+ className = "overflow-auto dark:hidden [&>pre]:m-0 [&>pre]:bg-background! [&>pre]:p-4 [&>pre]:text-foreground! [&>pre]:text-sm [&_code]:font-mono [&_code]:text-sm"
113113 // biome-ignore lint/security/noDangerouslySetInnerHtml: "this is needed."
114114 dangerouslySetInnerHTML = { { __html : html } }
115115 />
116116 < div
117- className = "hidden overflow-hidden dark:block [&>pre]:m-0 [&>pre]:bg-background! [&>pre]:p-4 [&>pre]:text-foreground! [&>pre]:text-sm [&_code]:font-mono [&_code]:text-sm"
117+ className = "hidden overflow-auto dark:block [&>pre]:m-0 [&>pre]:bg-background! [&>pre]:p-4 [&>pre]:text-foreground! [&>pre]:text-sm [&_code]:font-mono [&_code]:text-sm"
118118 // biome-ignore lint/security/noDangerouslySetInnerHtml: "this is needed."
119119 dangerouslySetInnerHTML = { { __html : darkHtml } }
120120 />
You can’t perform that action at this time.
0 commit comments