fix: prevent user guide sidebar from overlaying main content
This commit is contained in:
1 parent
b196d0de78
commit
6b1d574698
1 file changed
+10
-2
@@ -1,11 +1,13 @@
|
|||||||
import Sidebar from "../../Sidebar/index.jsx";
|
import Sidebar from "../../Sidebar/index.jsx";
|
||||||
import { Outlet } from "react-router";
|
import { Outlet } from "react-router";
|
||||||
import { Stack } from "@mui/material";
|
import { Stack } from "@mui/material";
|
||||||
import { UserGuideSidebar } from "../../UserGuide";
|
import { UserGuideSidebar, useUserGuideSidebarContext } from "../../UserGuide";
|
||||||
|
|
||||||
import "./index.css";
|
import "./index.css";
|
||||||
|
|
||||||
const HomeLayout = () => {
|
const HomeLayout = () => {
|
||||||
|
const { requiredPaddingRight } = useUserGuideSidebarContext();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Stack
|
<Stack
|
||||||
className="home-layout"
|
className="home-layout"
|
||||||
@@ -13,7 +15,13 @@ const HomeLayout = () => {
|
|||||||
gap={14}
|
gap={14}
|
||||||
>
|
>
|
||||||
<Sidebar />
|
<Sidebar />
|
||||||
<Stack className="home-content-wrapper">
|
<Stack
|
||||||
|
className="home-content-wrapper"
|
||||||
|
sx={{
|
||||||
|
paddingRight: `${requiredPaddingRight}px`,
|
||||||
|
transition: "padding-right 300ms ease-in-out",
|
||||||
|
}}
|
||||||
|
>
|
||||||
<Outlet />
|
<Outlet />
|
||||||
</Stack>
|
</Stack>
|
||||||
<UserGuideSidebar />
|
<UserGuideSidebar />
|
||||||
|
|||||||
Reference in new issue
Block a user