Skip to content

Commit a8e0a4f

Browse files
committed
fix: code block overflow hidden
1 parent 9476bcc commit a8e0a4f

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/components/CodeBlock.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,9 @@ const CodeBlock: FC<{ children: string } & SyntaxHighlighterProps> = ({ children
99
const { resolvedTheme } = useTheme()
1010

1111
return (
12-
<div className="overflow-hidden rounded-lg">
13-
<SyntaxHighlighter style={resolvedTheme === 'dark' ? atomOneDark : atomOneLight} {...props}>
14-
{children}
15-
</SyntaxHighlighter>
16-
</div>
12+
<SyntaxHighlighter className="rounded-lg" style={resolvedTheme === 'dark' ? atomOneDark : atomOneLight} {...props}>
13+
{children}
14+
</SyntaxHighlighter>
1715
)
1816
}
1917
CodeBlock.displayName = 'CodeBlock'

0 commit comments

Comments
 (0)