Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix font size and overflow for sales/orders card
Lukasz Szewczyk83e7aff7e248
diff --git a/saleor/static/dashboard-next/home/components/HomeOrdersCard/HomeOrdersCard.tsx b/saleor/static/dashboard-next/home/components/HomeOrdersCard/HomeOrdersCard.tsxindex c10d3a1a71..04c39ed8ff 100644--- a/saleor/static/dashboard-next/home/components/HomeOrdersCard/HomeOrdersCard.tsx+++ b/saleor/static/dashboard-next/home/components/HomeOrdersCard/HomeOrdersCard.tsx@@ -40,6 +40,7 @@ const decorate = withStyles(theme => ({[theme.breakpoints.down("sm")]: {marginLeft: `${theme.spacing.unit * 0.5}px`},+ overflow: "initial" as "initial",width: "100%"},icon: {@@ -70,7 +71,7 @@ const HomeOrdersCard = decorate<HomeOrdersCardProps>(>{i18n.t("Today")}</Typography>- <Typography color={"textPrimary"} variant="display1">+ <Typography color={"textPrimary"} variant="headline">{daily && daily.orders ? daily.orders.amount : <Skeleton />}</Typography></div>diff --git a/saleor/static/dashboard-next/home/components/HomeSalesCard/HomeSalesCard.tsx b/saleor/static/dashboard-next/home/components/HomeSalesCard/HomeSalesCard.tsxindex 5cb1f1f0fd..10c2c8e64f 100644--- a/saleor/static/dashboard-next/home/components/HomeSalesCard/HomeSalesCard.tsx+++ b/saleor/static/dashboard-next/home/components/HomeSalesCard/HomeSalesCard.tsx@@ -30,9 +30,7 @@ const decorate = withStyles(theme => ({},display: "grid" as "grid",gridColumnGap: theme.spacing.unit * 1 + "px",- gridTemplateColumns: "minmax(min-content, 5fr) 70px",- minHeight: "0",- minWidth: "0"+ gridTemplateColumns: "minmax(min-content, 5fr) 70px"},cardSubtitle: {@@ -49,6 +47,7 @@ const decorate = withStyles(theme => ({[theme.breakpoints.down("sm")]: {marginRight: `${theme.spacing.unit * 0.5}px`},+ overflow: "initial" as "initial",width: "100%"},icon: {@@ -75,7 +74,7 @@ const HomeSalesCard = decorate<HomeSalesCardProps>(<Typography className={classes.cardSubtitle} variant="caption">{i18n.t("Today")}</Typography>- <Typography color={"textPrimary"} variant="display1">+ <Typography color={"textPrimary"} variant="headline">{daily &&daily.sales &&daily.sales.amount !== undefined &&