Skip to content

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

Add container responsiveness

dominik-zeglen6a1c38a98fcf
diff --git a/saleor/static/dashboard-next/components/AppLayout/AppLayout.tsx b/saleor/static/dashboard-next/components/AppLayout/AppLayout.tsx
index d846116600..ba8e7af6d1 100644
--- a/saleor/static/dashboard-next/components/AppLayout/AppLayout.tsx
+++ b/saleor/static/dashboard-next/components/AppLayout/AppLayout.tsx
@@ -103,9 +103,9 @@ const styles = (theme: Theme) =>
flex: 1,
flexGrow: 1,
marginLeft: 0,
- padding: theme.spacing.unit,
+ paddingBottom: theme.spacing.unit,
[theme.breakpoints.up("sm")]: {
- padding: theme.spacing.unit * 2
+ paddingBottom: theme.spacing.unit * 3
}
}
});
diff --git a/saleor/static/dashboard-next/components/Container.tsx b/saleor/static/dashboard-next/components/Container.tsx
index 2827db85bc..57d552d013 100644
--- a/saleor/static/dashboard-next/components/Container.tsx
+++ b/saleor/static/dashboard-next/components/Container.tsx
@@ -14,7 +14,11 @@ const styles = (theme: Theme) =>
marginLeft: "auto",
marginRight: "auto",
maxWidth: theme.breakpoints.width("lg")
- }
+ },
+ [theme.breakpoints.up("sm")]: {
+ padding: `0 ${theme.spacing.unit * 3}px`
+ },
+ padding: `0 ${theme.spacing.unit}px`
}
});