Skip to content

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

Fix spacing in Products/Activity component

Lukasz Szewczyk75b83eb962cf
diff --git a/saleor/static/dashboard-next/home/components/HomeActivityCard/HomeActivityCard.tsx b/saleor/static/dashboard-next/home/components/HomeActivityCard/HomeActivityCard.tsx
index 22018d6a55..c9e4f18624 100644
--- a/saleor/static/dashboard-next/home/components/HomeActivityCard/HomeActivityCard.tsx
+++ b/saleor/static/dashboard-next/home/components/HomeActivityCard/HomeActivityCard.tsx
@@ -26,12 +26,12 @@ interface HomeProductListCardProps {
const decorate = withStyles({
loadingProducts: {
- paddingBottom: "8px",
- paddingTop: "7px"
+ paddingBottom: "10px",
+ paddingTop: "10px"
},
noProducts: {
- paddingBottom: "14px",
- paddingTop: "14px"
+ paddingBottom: "16px",
+ paddingTop: "16px"
}
});
@@ -73,10 +73,10 @@ const HomeProductListCard = decorate<HomeProductListCardProps>(
</ListItem>
),
() => (
- <ListItem dense={false} className={classes.noProducts}>
+ <ListItem className={classes.noProducts}>
<ListItemText
primary={
- <Typography>{i18n.t("No products found")}</Typography>
+ <Typography>{i18n.t("No activities found")}</Typography>
}
/>
</ListItem>
diff --git a/saleor/static/dashboard-next/home/components/HomeProductListCard/HomeProductListCard.tsx b/saleor/static/dashboard-next/home/components/HomeProductListCard/HomeProductListCard.tsx
index 44194ef45a..28b8ed9e79 100644
--- a/saleor/static/dashboard-next/home/components/HomeProductListCard/HomeProductListCard.tsx
+++ b/saleor/static/dashboard-next/home/components/HomeProductListCard/HomeProductListCard.tsx
@@ -40,6 +40,10 @@ const decorate = withStyles(theme => ({
paddingBottom: theme.spacing.unit * 2,
paddingTop: theme.spacing.unit * 2
},
+ noProducts: {
+ paddingBottom: "20px",
+ paddingTop: "20px"
+ },
tableRow: {
cursor: "pointer" as "pointer"
}
@@ -105,7 +109,7 @@ export const HomeProductList = decorate<HomeProductListProps>(
),
() => (
<TableRow>
- <TableCell>
+ <TableCell className={classes.noProducts}>
<Typography>{i18n.t("No products found")}</Typography>
</TableCell>
</TableRow>