Skip to content

Commit

Permalink
fix: CodeBlock overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
flacial committed Jun 8, 2023
1 parent 28c5fdc commit 0cf4d06
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/mdx/CodeBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ const CodeBlock: React.FC<Props> = ({ children, className }) => {
marginBottom: 0,
fontSize: 14,
borderRadius: 4,
marginBlock: 20
marginBlock: 20,
wordBreak: 'break-all'
}}
>
{tokens.map((line, i) => (
Expand Down

0 comments on commit 0cf4d06

Please sign in to comment.