Skip to content

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

Fix paddings in activities card

Lukasz Szewczyk48fc4c3eb139
diff --git a/saleor/static/dashboard-next/home/components/HomeActivityCard/HomeActivityCard.tsx b/saleor/static/dashboard-next/home/components/HomeActivityCard/HomeActivityCard.tsx
index 43cdbe308b..6cecc2d070 100644
--- a/saleor/static/dashboard-next/home/components/HomeActivityCard/HomeActivityCard.tsx
+++ b/saleor/static/dashboard-next/home/components/HomeActivityCard/HomeActivityCard.tsx
@@ -25,9 +25,13 @@ interface HomeProductListCardProps {
}
const decorate = withStyles({
+ loadingProducts: {
+ paddingBottom: "8px",
+ paddingTop: "7px"
+ },
noProducts: {
- paddingBottom: "18px",
- paddingTop: "18px"
+ paddingBottom: "14px",
+ paddingTop: "14px"
}
});
@@ -64,8 +68,10 @@ const HomeProductListCard = decorate<HomeProductListCardProps>(
}
/>
) : (
- <ListItemText>
- <Skeleton />
+ <ListItemText className={classes.loadingProducts}>
+ <Typography>
+ <Skeleton />
+ </Typography>
</ListItemText>
)}
</ListItem>
diff --git a/saleor/static/dashboard-next/home/fixtures.ts b/saleor/static/dashboard-next/home/fixtures.ts
index 4f85458942..49cc5fb291 100644
--- a/saleor/static/dashboard-next/home/fixtures.ts
+++ b/saleor/static/dashboard-next/home/fixtures.ts
@@ -41,7 +41,7 @@ export const shop = (placeholderImage: string) => ({
amount: 1223
},
sales: {
- amount: 125,
+ amount: 12325,
currency: "PLN"
}
},