fix: add right padding to content for sidebar tab bar
This commit is contained in:
1 parent
9d44e11496
commit
bf55c21e79
1 file changed
+2
-1
@@ -2,7 +2,7 @@ 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 { useTheme } from "@mui/material/styles";
|
import { useTheme } from "@mui/material/styles";
|
||||||
import { UserGuideSidebar } from "../../UserGuide";
|
import { UserGuideSidebar, TAB_BAR_WIDTH } from "../../UserGuide";
|
||||||
|
|
||||||
const HomeLayout = () => {
|
const HomeLayout = () => {
|
||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
@@ -28,6 +28,7 @@ const HomeLayout = () => {
|
|||||||
<Stack
|
<Stack
|
||||||
sx={{
|
sx={{
|
||||||
padding: theme.spacing(4),
|
padding: theme.spacing(4),
|
||||||
|
paddingRight: `${TAB_BAR_WIDTH + 16}px`,
|
||||||
maxWidth: 1400,
|
maxWidth: 1400,
|
||||||
margin: "0 auto",
|
margin: "0 auto",
|
||||||
flex: 1,
|
flex: 1,
|
||||||
|
|||||||
Reference in new issue
Block a user