Skip to content

Commit 6c708e1

Browse files
authored
Merge pull request #3072 from processing/scroll-in-policy-container
Mobile View: Add Scroll to Legal Pages
2 parents 3c933e9 + 10c843e commit 6c708e1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

client/modules/Legal/components/PolicyContainer.jsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ import { remSize, prop } from '../../../theme';
77

88
const PolicyContainerMain = styled.main`
99
max-width: ${remSize(700)};
10+
min-height: 100vh;
1011
margin: 0 auto;
1112
padding: ${remSize(10)};
1213
line-height: 1.5em;
13-
overflow: auto;
1414
& p {
1515
margin-bottom: ${remSize(10)};
1616
}
@@ -38,6 +38,11 @@ const PolicyContainerMain = styled.main`
3838
& a {
3939
color: ${prop('Policy.link')};
4040
}
41+
42+
@media (max-width: 770px) {
43+
overflow: auto;
44+
min-height: unset;
45+
}
4146
`;
4247

4348
function PolicyContainer({ policy }) {

0 commit comments

Comments
 (0)