fix: Layout issue with full-width documents and left TOC
This commit is contained in:
@@ -498,7 +498,7 @@ class DocumentScene extends React.Component<Props> {
|
|||||||
as={Main}
|
as={Main}
|
||||||
name="document"
|
name="document"
|
||||||
fullWidth={document.fullWidth}
|
fullWidth={document.fullWidth}
|
||||||
tocPosition={tocPosition}
|
tocPosition={tocPos}
|
||||||
>
|
>
|
||||||
<React.Suspense fallback={<PlaceholderDocument />}>
|
<React.Suspense fallback={<PlaceholderDocument />}>
|
||||||
{revision ? (
|
{revision ? (
|
||||||
@@ -627,9 +627,9 @@ type ContentsContainerProps = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const ContentsContainer = styled.div<ContentsContainerProps>`
|
const ContentsContainer = styled.div<ContentsContainerProps>`
|
||||||
margin-top: calc(44px + 6vh);
|
|
||||||
|
|
||||||
${breakpoint("tablet")`
|
${breakpoint("tablet")`
|
||||||
|
margin-top: calc(44px + 6vh);
|
||||||
|
|
||||||
grid-row: 1;
|
grid-row: 1;
|
||||||
grid-column: ${({ docFullWidth, position }: ContentsContainerProps) =>
|
grid-column: ${({ docFullWidth, position }: ContentsContainerProps) =>
|
||||||
position === TOCPosition.Left ? 1 : docFullWidth ? 2 : 3};
|
position === TOCPosition.Left ? 1 : docFullWidth ? 2 : 3};
|
||||||
|
|||||||
Reference in New Issue
Block a user