mirror of
https://github.com/outline/outline.git
synced 2026-11-29 08:39:20 +03:00
Apply full width to print layout (#11768)
* Apply full width to print layout * Fix closing parens
This commit is contained in:
1 parent
a9401c9bb6
commit
cc1c4b22d4
1 file changed
+9
-7
@@ -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
|
||||
|
||||
Reference in new issue
Block a user