fix: prevent the interactive gutter elements from interfering with the sidebar collapse button (#3350)

* fix: prevent the interactive gutter elements from interfering with the sidebar collapse button

* keep mobile padding the same on documents

Co-authored-by: Tom Moor <tom.moor@gmail.com>
This commit is contained in:
Nan Yu
2022-04-11 19:48:05 -07:00
committed by GitHub
parent 7f5bf6c6b3
commit 5520317ce1
2 changed files with 3 additions and 2 deletions

View File

@@ -12,8 +12,8 @@ const Container = styled.div<Props>`
padding: ${(props) => (props.withStickyHeader ? "4px 12px" : "60px 12px")};
${breakpoint("tablet")`
padding: ${(props: Props) =>
props.withStickyHeader ? "4px 60px 60px" : "60px"};
padding: ${(props: any) =>
props.withStickyHeader ? "4px 44px 60px" : "60px 44px"};
`};
`;

View File

@@ -657,6 +657,7 @@ const MaxWidth = styled(Flex)<MaxWidthProps>`
padding-bottom: 16px;
${breakpoint("tablet")`
padding: 0 44px;
margin: 4px auto 12px;
max-width: ${(props: MaxWidthProps) =>
props.isFullWidth