From cda8acddbb81802278c992ebc73fafdbe6acca2e Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Mon, 1 May 2023 21:15:17 -0400 Subject: [PATCH] fix: Horizontal scrollbars with full-width documents --- app/scenes/Document/components/Editor.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/scenes/Document/components/Editor.tsx b/app/scenes/Document/components/Editor.tsx index 22df28a38..1a29ce2d4 100644 --- a/app/scenes/Document/components/Editor.tsx +++ b/app/scenes/Document/components/Editor.tsx @@ -197,8 +197,8 @@ function DocumentEditor(props: Props, ref: React.RefObject) { } extensions={extensions} editorStyle={{ - padding: isMobile ? "0 32px" : "0 64px", - margin: isMobile ? "0 -32px" : "0 -64px", + padding: document.fullWidth || isMobile ? "0 32px" : "0 64px", + margin: document.fullWidth || isMobile ? "0 -32px" : "0 -64px", paddingBottom: `calc(50vh - ${ childRef.current?.offsetHeight || 0 }px)`,