From 18a463219db60b27505bb27e703f4e286bae6eee Mon Sep 17 00:00:00 2001 From: Abdullah Atta Date: Thu, 20 Oct 2022 13:49:15 +0500 Subject: [PATCH] web: limit editor width to 850px --- apps/web/src/components/editor/index.tsx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/apps/web/src/components/editor/index.tsx b/apps/web/src/components/editor/index.tsx index ad480d961..3eb27f539 100644 --- a/apps/web/src/components/editor/index.tsx +++ b/apps/web/src/components/editor/index.tsx @@ -302,14 +302,11 @@ function EditorChrome(props: PropsWithChildren) { className="editor" sx={{ alignSelf: ["stretch", focusMode ? "center" : "stretch", "center"], - width: "100%", - maxWidth: focusMode - ? "min(100%, 850px)" - : "max(calc(100% - 200px), 850px)" + maxWidth: "min(100%, 850px)", + width: "100%" }} px={6} onClick={onRequestFocus} - // mt={[2, 2, 25]} > {!isMobile && (