Skip to content

Commit

Permalink
fix: improve mobile scrolling
Browse files Browse the repository at this point in the history
  • Loading branch information
breadadams committed May 13, 2020
1 parent dd3cb36 commit 9d03c24
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
9 changes: 2 additions & 7 deletions packages/app/src/components/app-frame.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,9 @@ export const AppFrame = ({ sx, ...props }) => {
<Flex
sx={{
bg: 'white',
height: '100vh',
height: ['initial', '', '100vh'],
flexDirection: ['column', '', 'row'],
position: 'fixed',
left: 0,
top: 0,
right: 0,
bottom: 0,
overflow: ['scroll', '', 'hidden'],
overflow: ['initial', '', 'hidden'],
...sx
}}
{...props}
Expand Down
2 changes: 1 addition & 1 deletion packages/app/src/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const theme = {
fontFamily: 'sans',
lineHeight: 1.5,
margin: 0,
overflow: 'hidden'
overflow: ['initial', '', 'hidden']
}
}
}

0 comments on commit 9d03c24

Please sign in to comment.