From cc1c4b22d44ffbb3384eb2ba3f3f6db6e69c13cd Mon Sep 17 00:00:00 2001 From: wmTJc9IK0Q <171362836+wmTJc9IK0Q@users.noreply.github.com> Date: Mon, 16 Mar 2026 07:51:03 -0500 Subject: [PATCH] Apply full width to print layout (#11768) * Apply full width to print layout * Fix closing parens --- app/scenes/Document/components/Document.tsx | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/app/scenes/Document/components/Document.tsx b/app/scenes/Document/components/Document.tsx index df74ae8206..73295927ba 100644 --- a/app/scenes/Document/components/Document.tsx +++ b/app/scenes/Document/components/Document.tsx @@ -669,9 +669,11 @@ const Main = styled.div` @media print { display: block; - max-width: calc( - ${EditorStyleHelper.documentWidth} + ${EditorStyleHelper.documentGutter} - ); + max-width: ${({ fullWidth }: MainProps) => + fullWidth + ? `100%` + : `calc(${EditorStyleHelper.documentWidth} + ${EditorStyleHelper.documentGutter})` + }; } `; @@ -720,10 +722,10 @@ const EditorContainer = styled.div` // Decides the editor column position & span grid-column: ${({ - docFullWidth, - showContents, - tocPosition, - }: EditorContainerProps) => + docFullWidth, + showContents, + tocPosition, +}: EditorContainerProps) => docFullWidth ? showContents ? tocPosition === TOCPosition.Left