Skip to content

AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.

fix Mermaid preview scroll chaining

tianma-ife5169b27e134
diff --git a/apps/web/src/styles/globals.css b/apps/web/src/styles/globals.css
index b06b37d1..0440941b 100644
--- a/apps/web/src/styles/globals.css
+++ b/apps/web/src/styles/globals.css
@@ -546,7 +546,8 @@ textarea {
align-items: center;
justify-content: center;
overflow: auto;
- overscroll-behavior: contain;
+ overscroll-behavior-x: contain;
+ overscroll-behavior-y: auto;
padding: 3.25rem 1rem 1rem;
border: 1px solid #d9e2dc;
border-radius: 8px;
diff --git a/apps/web/src/styles/mobile-markdown-editor.css b/apps/web/src/styles/mobile-markdown-editor.css
index d9e74fb1..ef12d500 100644
--- a/apps/web/src/styles/mobile-markdown-editor.css
+++ b/apps/web/src/styles/mobile-markdown-editor.css
@@ -518,7 +518,8 @@ input {
align-items: center;
justify-content: center;
overflow: auto;
- overscroll-behavior: contain;
+ overscroll-behavior-x: contain;
+ overscroll-behavior-y: auto;
padding: 4rem 0.75rem 0.75rem;
border: 1px solid #d9e2dc;
border-radius: 8px;