Skip to content

Commit

Permalink
fix: fixes scroll issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ghoshnirmalya committed Dec 29, 2020
1 parent 5c27fc1 commit b74f360
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/builder/components/layouts/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@ const Layout: FC = ({ children }) => {
<>
<TopNavbar />
<Flex
minH="calc(100vh - 50px)"
h="calc(100vh - 50px)"
w="100vw"
justifyContent="center"
alignItems="center"
bg={bgColor}
color={color}
overflowY="scroll"
>
{children}
</Flex>
Expand Down
2 changes: 1 addition & 1 deletion packages/builder/pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default class MyDocument extends Document {
{this.googleAnalyticsScriptNode()}
<meta name="Description" content="Website builder" />
</Head>
<Box as="body">
<Box as="body" overflowY="hidden">
<Main />
<NextScript />
</Box>
Expand Down

0 comments on commit b74f360

Please sign in to comment.