We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9476bcc commit a8e0a4fCopy full SHA for a8e0a4f
src/components/CodeBlock.tsx
@@ -9,11 +9,9 @@ const CodeBlock: FC<{ children: string } & SyntaxHighlighterProps> = ({ children
9
const { resolvedTheme } = useTheme()
10
11
return (
12
- <div className="overflow-hidden rounded-lg">
13
- <SyntaxHighlighter style={resolvedTheme === 'dark' ? atomOneDark : atomOneLight} {...props}>
14
- {children}
15
- </SyntaxHighlighter>
16
- </div>
+ <SyntaxHighlighter className="rounded-lg" style={resolvedTheme === 'dark' ? atomOneDark : atomOneLight} {...props}>
+ {children}
+ </SyntaxHighlighter>
17
)
18
}
19
CodeBlock.displayName = 'CodeBlock'
0 commit comments