Skip to content

Commit

Permalink
chore: update code block styles
Browse files Browse the repository at this point in the history
  • Loading branch information
boojack committed Jan 28, 2024
1 parent f05a893 commit 8c62929
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/components/MemoContent/CodeBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const CodeBlock: React.FC<Props> = ({ language, content }: Props) => {

// Users can set Markdown code blocks as `__html` to render HTML directly.
if (formatedLanguage === "__html") {
return <div className="w-full !my-2" dangerouslySetInnerHTML={{ __html: content }} />;
return <div className="w-full overflow-auto !my-2" dangerouslySetInnerHTML={{ __html: content }} />;
}

try {
Expand Down

0 comments on commit 8c62929

Please sign in to comment.