Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix subMenuDrawer width

Krzysztof Bialoglowiczef0c3a9bbcaf
diff --git a/saleor/static/dashboard-next/components/AppLayout/MenuList.tsx b/saleor/static/dashboard-next/components/AppLayout/MenuList.tsx
index 80cad24ff2..3913f4f5a7 100644
--- a/saleor/static/dashboard-next/components/AppLayout/MenuList.tsx
+++ b/saleor/static/dashboard-next/components/AppLayout/MenuList.tsx
@@ -110,7 +110,7 @@ const styles = (theme: Theme) =>
background: "#000",
cursor: "pointer",
height: "100vh",
- left: drawerWidth,
+ left: drawerWidthExpanded,
opacity: 0.2,
position: "absolute",
top: 0,
@@ -119,8 +119,8 @@ const styles = (theme: Theme) =>
},
subMenuDrawerOpen: {
"&$subMenuDrawerSmall": {
- left: drawerWidth,
- width: `calc(100vw - ${drawerWidth})px`
+ left: drawerWidthExpanded,
+ width: `calc(100vw - ${drawerWidthExpanded})px`
},
width: `calc(100vw - ${drawerWidthExpanded}px)`
},