Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

chore: update code block styles

Steven8c6292925ef3
diff --git a/web/src/components/MemoContent/CodeBlock.tsx b/web/src/components/MemoContent/CodeBlock.tsx
index fbdd71147..9dd10928a 100644
--- a/web/src/components/MemoContent/CodeBlock.tsx
+++ b/web/src/components/MemoContent/CodeBlock.tsx
@@ -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 {