fix: use margin instead of padding for sidebar spacing
This commit is contained in:
1 parent
6b1d574698
commit
4e1f9bc431
1 file changed
+5
-7
@@ -13,15 +13,13 @@ const HomeLayout = () => {
|
||||
className="home-layout"
|
||||
flexDirection="row"
|
||||
gap={14}
|
||||
sx={{
|
||||
marginRight: `${requiredPaddingRight}px`,
|
||||
transition: "margin-right 300ms ease-in-out",
|
||||
}}
|
||||
>
|
||||
<Sidebar />
|
||||
<Stack
|
||||
className="home-content-wrapper"
|
||||
sx={{
|
||||
paddingRight: `${requiredPaddingRight}px`,
|
||||
transition: "padding-right 300ms ease-in-out",
|
||||
}}
|
||||
>
|
||||
<Stack className="home-content-wrapper">
|
||||
<Outlet />
|
||||
</Stack>
|
||||
<UserGuideSidebar />
|
||||
|
||||
Reference in new issue
Block a user