mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-02-27 18:40:33 +00:00
feat(sidebar-wrapper): add reusable style with flag for side padding
This commit is contained in:
parent
4acb387ff1
commit
7c712f6001
@ -19,6 +19,19 @@ const SidebarsWrapper = ({
|
|||||||
isNotSidePadding,
|
isNotSidePadding,
|
||||||
}: SidebarsWrapperProps) => {
|
}: SidebarsWrapperProps) => {
|
||||||
return (
|
return (
|
||||||
|
<XStack style={{ minHeight: '100vh' }}>
|
||||||
|
{!isNotLeftSidebar && <LeftSidebar />}
|
||||||
|
<div
|
||||||
|
style={{
|
||||||
|
display: 'flex',
|
||||||
|
flexGrow: '1',
|
||||||
|
padding: `20px ${isNotSidePadding ? 0 : 20}px`,
|
||||||
|
overflowY: 'auto',
|
||||||
|
height: 'fit-content',
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{children}
|
||||||
|
</div>
|
||||||
{!isNotRightSidebar && (
|
{!isNotRightSidebar && (
|
||||||
<div className={styles['right-sidebar-wrapper']}>
|
<div className={styles['right-sidebar-wrapper']}>
|
||||||
<RightSidebar />
|
<RightSidebar />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user