fix: prevent user guide sidebar from overlaying main content

This commit is contained in:
gorkem-bwl committed 2026-01-17 13:04:30 -05:00
1 parent b196d0de78
commit 6b1d574698
1 file changed
+10 -2
@@ -1,11 +1,13 @@
import Sidebar from "../../Sidebar/index.jsx";
import { Outlet } from "react-router";
import { Stack } from "@mui/material";
import { UserGuideSidebar } from "../../UserGuide";
import { UserGuideSidebar, useUserGuideSidebarContext } from "../../UserGuide";
import "./index.css";
const HomeLayout = () => {
const { requiredPaddingRight } = useUserGuideSidebarContext();
return (
<Stack
className="home-layout"
@@ -13,7 +15,13 @@ const HomeLayout = () => {
gap={14}
>
<Sidebar />
<Stack className="home-content-wrapper">
<Stack
className="home-content-wrapper"
sx={{
paddingRight: `${requiredPaddingRight}px`,
transition: "padding-right 300ms ease-in-out",
}}
>
<Outlet />
</Stack>
<UserGuideSidebar />