Skip to content

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

Make editor tables responsive

tianma-if2e5bf5063e85
diff --git a/apps/web/src/styles/globals.css b/apps/web/src/styles/globals.css
index a40c70b4..85b1de8b 100644
--- a/apps/web/src/styles/globals.css
+++ b/apps/web/src/styles/globals.css
@@ -734,6 +734,28 @@ textarea {
}
}
+@media (min-width: 768px) {
+ .ProseMirror .tableWrapper {
+ width: 100%;
+ }
+
+ .ProseMirror table {
+ width: 100%;
+ min-width: 100% !important;
+ table-layout: auto;
+ }
+
+ .ProseMirror table col {
+ width: auto !important;
+ }
+
+ .ProseMirror th,
+ .ProseMirror td {
+ width: auto;
+ min-width: 0;
+ }
+}
+
.ProseMirror th p,
.ProseMirror td p,
.markdown-content th p,