Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix image grid alignment
dominik-zeglena904e7ef01d5
diff --git a/saleor/static/dashboard-next/products/components/ProductImages/ProductImages.tsx b/saleor/static/dashboard-next/products/components/ProductImages/ProductImages.tsxindex 0f23164145..d695cc8b96 100644--- a/saleor/static/dashboard-next/products/components/ProductImages/ProductImages.tsx+++ b/saleor/static/dashboard-next/products/components/ProductImages/ProductImages.tsx@@ -77,9 +77,11 @@ const decorate = withStyles(theme => ({border: "1px solid #eaeaea",borderRadius: theme.spacing.unit,height: 140,+ margin: "auto",overflow: "hidden" as "hidden",padding: theme.spacing.unit * 2,- position: "relative" as "relative"+ position: "relative" as "relative",+ width: 140},imageOverlay: {background: "rgba(0, 0, 0, 0.6)",@@ -117,7 +119,13 @@ const decorate = withStyles(theme => ({display: "grid" as "grid",gridColumnGap: theme.spacing.unit * 2 + "px",gridRowGap: theme.spacing.unit * 2 + "px",- gridTemplateColumns: "repeat(4, 1fr)"+ gridTemplateColumns: "repeat(4, 1fr)",+ [theme.breakpoints.down("sm")]: {+ gridTemplateColumns: "repeat(3, 1fr)"+ },+ [theme.breakpoints.down("xs")]: {+ gridTemplateColumns: "repeat(2, 1fr)"+ }}}));