fix: revert padding approach, let sidebar overlay content
This commit is contained in:
1 parent
c44fd22031
commit
478e9671d4
2 files changed
+4
-10
No files matched your search
@@ -29,6 +29,8 @@
|
|||||||
|
|
||||||
.home-content-wrapper {
|
.home-content-wrapper {
|
||||||
padding: var(--env-var-spacing-2);
|
padding: var(--env-var-spacing-2);
|
||||||
|
max-width: 1400px;
|
||||||
|
margin: 0 auto;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
|
|||||||
@@ -1,13 +1,11 @@
|
|||||||
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, useUserGuideSidebarContext } from "../../UserGuide";
|
import { UserGuideSidebar } 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"
|
||||||
@@ -15,13 +13,7 @@ const HomeLayout = () => {
|
|||||||
gap={14}
|
gap={14}
|
||||||
>
|
>
|
||||||
<Sidebar />
|
<Sidebar />
|
||||||
<Stack
|
<Stack className="home-content-wrapper">
|
||||||
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