Skip to content

Commit f39fc98

Browse files
committed
fix: fix panel paddings on small screens
1 parent 974bc7d commit f39fc98

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/common-elements/panels.ts

+7
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ export const MiddlePanel = styled.div`
77
88
${media.lessThan('medium')`
99
width: 100%;
10+
padding: ${props =>
11+
`${props.theme.spacing.sectionVertical}px ${props.theme.spacing.sectionHorizontal}px`};
1012
`};
1113
`;
1214

@@ -17,6 +19,9 @@ export const Section = withProps<{ underlined?: boolean }>(
1719
)`
1820
padding: ${props => props.theme.spacing.sectionVertical}px 0;
1921
22+
${media.lessThan('medium')`
23+
padding: 0;
24+
`}
2025
${props =>
2126
(props.underlined &&
2227
`
@@ -42,6 +47,8 @@ export const RightPanel = styled.div`
4247
4348
${media.lessThan('medium')`
4449
width: 100%;
50+
padding: ${props =>
51+
`${props.theme.spacing.sectionVertical}px ${props.theme.spacing.sectionHorizontal}px`};
4552
`};
4653
`;
4754

0 commit comments

Comments
 (0)