Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

feat: fixed 100px margin around editor

thecodrrcb38f1ab0a34
diff --git a/apps/web/src/components/editor/index.tsx b/apps/web/src/components/editor/index.tsx
index 5c9b43708..64d05a4b0 100644
--- a/apps/web/src/components/editor/index.tsx
+++ b/apps/web/src/components/editor/index.tsx
@@ -255,9 +255,11 @@ function EditorChrome(props: PropsWithChildren<EditorProps>) {
sx={{
alignSelf: ["stretch", focusMode ? "center" : "stretch", "center"],
}}
- maxWidth={focusMode ? "min(100%, 850px)" : "935px"}
+ maxWidth={
+ focusMode ? "min(100%, 850px)" : "max(calc(100% - 200px), 850px)"
+ }
width="100%"
- px={[2, 2, 35]}
+ px={2}
onClick={onRequestFocus}
// mt={[2, 2, 25]}
>