feat(sidebar-wrapper): add reusable style with flag for side padding

This commit is contained in:
RadoslavDimchev 2024-03-29 09:51:53 +02:00 committed by Radoslav Dimchev
parent 4acb387ff1
commit 7c712f6001
1 changed files with 13 additions and 0 deletions

View File

@ -19,6 +19,19 @@ const SidebarsWrapper = ({
isNotSidePadding,
}: SidebarsWrapperProps) => {
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 && (
<div className={styles['right-sidebar-wrapper']}>
<RightSidebar />