Apply full width to print layout (#11768)

* Apply full width to print layout

* Fix closing parens
This commit is contained in:
wmTJc9IK0Q
2026-03-16 07:51:03 -05:00
committed by GitHub
parent a9401c9bb6
commit cc1c4b22d4
+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