Skip to content

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

fix(web): center editor outline layout

tianma-ife1c3bb5b6597
diff --git a/apps/web/src/components/EditorPane.tsx b/apps/web/src/components/EditorPane.tsx
index 6a278b34..9e32e657 100644
--- a/apps/web/src/components/EditorPane.tsx
+++ b/apps/web/src/components/EditorPane.tsx
@@ -4100,7 +4100,7 @@ const RichEditorPane = ({
: "min-h-full items-start px-6 py-6 sm:px-10",
desktopFocusMode
? "mx-auto w-full max-w-[1400px] justify-center"
- : "w-full justify-start"
+ : "w-full justify-center"
)}
>
<div
diff --git a/apps/web/src/lib/workspace-ui.ts b/apps/web/src/lib/workspace-ui.ts
index 57b393c4..34078d7c 100644
--- a/apps/web/src/lib/workspace-ui.ts
+++ b/apps/web/src/lib/workspace-ui.ts
@@ -2,8 +2,8 @@ export const WORKSPACE_PAGE_TITLE_CLASSNAME = "text-sm font-semibold leading-5 t
/**
* Editor Layout Constants
- * - EDITOR_OUTLINE_WIDTH: Width of the left document outline (TOC) panel (default: 260px)
- * - EDITOR_CONTENT_MAX_WIDTH: Maximum width of the document editor content area (default: 800px)
+ * - EDITOR_OUTLINE_WIDTH: Width of the document outline (TOC) panel (default: 300px)
+ * - EDITOR_CONTENT_MAX_WIDTH: Maximum width of the document editor content area (default: 880px)
*/
export const EDITOR_OUTLINE_WIDTH = "300px";
export const EDITOR_CONTENT_MAX_WIDTH = "880px";