Apply full width to print layout (#11768)

* Apply full width to print layout

* Fix closing parens
This commit is contained in:
wmTJc9IK0Q authored and GitHub committed 2026-03-16 08:51:03 -04:00
1 parent a9401c9bb6
commit cc1c4b22d4
1 file changed
+9 -7
+9 -7
View File
@@ -669,9 +669,11 @@ const Main = styled.div<MainProps>`
@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<EditorContainerProps>`
// Decides the editor column position & span
grid-column: ${({
docFullWidth,
showContents,
tocPosition,
}: EditorContainerProps) =>
docFullWidth,
showContents,
tocPosition,
}: EditorContainerProps) =>
docFullWidth
? showContents
? tocPosition === TOCPosition.Left