Skip to content

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

Fix rwd

dominik-zeglenb6f81b68cb92
diff --git a/saleor/static/dashboard-next/AppRoot.tsx b/saleor/static/dashboard-next/AppRoot.tsx
index aaafb3b7aa..3181dc03f1 100644
--- a/saleor/static/dashboard-next/AppRoot.tsx
+++ b/saleor/static/dashboard-next/AppRoot.tsx
@@ -94,6 +94,7 @@ const decorate = withStyles(
marginTop: 56,
padding: theme.spacing.unit,
[theme.breakpoints.up("sm")]: {
+ marginLeft: drawerWidth,
padding: theme.spacing.unit * 2
}
},
@@ -102,7 +103,7 @@ const decorate = withStyles(
borderRight: "0 none",
height: `calc(100vh - ${navigationBarHeight + theme.spacing.unit * 2}px)`,
marginTop: navigationBarHeight + theme.spacing.unit * 2,
- position: "relative" as "relative",
+ position: "fixed" as "fixed",
width: drawerWidth
},
drawerMobile: {
diff --git a/saleor/static/dashboard-next/configuration/ConfigurationPage.tsx b/saleor/static/dashboard-next/configuration/ConfigurationPage.tsx
index 5f4963e412..98ecffc81c 100644
--- a/saleor/static/dashboard-next/configuration/ConfigurationPage.tsx
+++ b/saleor/static/dashboard-next/configuration/ConfigurationPage.tsx
@@ -49,6 +49,9 @@ const decorate = withStyles(theme => ({
fontSize: 48
},
root: {
+ [theme.breakpoints.down("md")]: {
+ gridTemplateColumns: "1fr"
+ },
display: "grid" as "grid",
gridColumnGap: theme.spacing.unit * 4 + "px",
gridTemplateColumns: "1fr 1fr"