Skip to content

Commit

Permalink
fix: revert commit
Browse files Browse the repository at this point in the history
  • Loading branch information
sashuk committed Aug 15, 2023
1 parent 9b3e1b1 commit 221780a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
12 changes: 5 additions & 7 deletions packages/picasso/src/Page/Page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,11 @@ export const Page = forwardRef<HTMLDivElement, Props>(function Page(
className={cx(classes.root, className)}
style={style}
>
<div className={cx(classes.subRoot)}>
<PageContext.Provider value={{ width, fullWidth }}>
<PageHamburgerContextProvider hamburgerId={hamburgerId}>
{children}
</PageHamburgerContextProvider>
</PageContext.Provider>
</div>
<PageContext.Provider value={{ width, fullWidth }}>
<PageHamburgerContextProvider hamburgerId={hamburgerId}>
{children}
</PageHamburgerContextProvider>
</PageContext.Provider>
</div>
)
})
Expand Down
5 changes: 0 additions & 5 deletions packages/picasso/src/Page/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ export default ({ layout }: Theme) =>
display: 'flex',
flexDirection: 'column',
height: '100%',
overflowX: 'hidden',
...(layout.contentMinWidth && { minWidth: layout.contentMinWidth }),

'& > footer, & > header': {
Expand All @@ -19,8 +18,4 @@ export default ({ layout }: Theme) =>
marginTop: headerHeight.default,
},
},
subRoot: {
width: '100vw',
height: '100vh',
},
})

0 comments on commit 221780a

Please sign in to comment.