Skip to content

Commit 0eeef2e

Browse files
committed
fix(web): dispute card skeletons width & height correction, padding bottoms adjustments
1 parent ac0d9c2 commit 0eeef2e

File tree

5 files changed

+11
-10
lines changed

5 files changed

+11
-10
lines changed

web/src/components/StyledSkeleton.tsx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,22 @@ export const StyledSkeleton = styled(Skeleton)`
99

1010
const SkeletonDisputeCardContainer = styled.div`
1111
width: 100%;
12+
1213
${landscapeStyle(
1314
() =>
1415
css`
1516
/* Explanation of this formula:
16-
- The 48px accounts for the total width of gaps: 2 gaps * 24px each.
17-
- The 0.333 is used to equally distribute width among 3 cards per row.
18-
- The 294px ensures the card has a minimum width.
19-
*/
20-
width: max(calc((100% - 48px) * 0.333), 294px);
17+
- The 48px accounts for the total width of gaps: 2 gaps * 24px each.
18+
- The 0.333 is used to equally distribute width among 3 cards per row.
19+
- The 348px ensures the card has a minimum width.
20+
*/
21+
width: max(calc((100% - 48px) * 0.333), 348px);
2122
`
2223
)}
2324
`;
2425

2526
const StyledSkeletonDisputeCard = styled(Skeleton)`
26-
height: 260px;
27+
height: calc(272px + (296 - 270) * (min(max(100vw, 375px), 1250px) - 375px) / 875);
2728
`;
2829

2930
const StyledSkeletonDisputeListItem = styled(Skeleton)`

web/src/pages/Cases/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const Container = styled.div`
99
background-color: ${({ theme }) => theme.lightBackground};
1010
padding: calc(32px + (136 - 32) * (min(max(100vw, 375px), 1250px) - 375px) / 875);
1111
padding-top: calc(32px + (80 - 32) * (min(max(100vw, 375px), 1250px) - 375px) / 875);
12-
padding-bottom: calc(64px + (96 - 64) * (min(max(100vw, 375px), 1250px) - 375px) / 875);
12+
padding-bottom: calc(64px + (120 - 64) * (min(max(100vw, 375px), 1250px) - 375px) / 875);
1313
max-width: 1780px;
1414
margin: 0 auto;
1515
`;

web/src/pages/Courts/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const Container = styled.div`
99
background-color: ${({ theme }) => theme.lightBackground};
1010
padding: calc(32px + (136 - 32) * (min(max(100vw, 375px), 1250px) - 375px) / 875);
1111
padding-top: calc(32px + (80 - 32) * (min(max(100vw, 375px), 1250px) - 375px) / 875);
12-
padding-bottom: calc(64px + (96 - 64) * (min(max(100vw, 375px), 1250px) - 375px) / 875);
12+
padding-bottom: calc(64px + (120 - 64) * (min(max(100vw, 375px), 1250px) - 375px) / 875);
1313
max-width: 1780px;
1414
margin: 0 auto;
1515
`;

web/src/pages/Dashboard/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const Container = styled.div`
1616
background-color: ${({ theme }) => theme.lightBackground};
1717
padding: calc(32px + (136 - 32) * (min(max(100vw, 375px), 1250px) - 375px) / 875);
1818
padding-top: calc(32px + (80 - 32) * (min(max(100vw, 375px), 1250px) - 375px) / 875);
19-
padding-bottom: calc(64px + (96 - 64) * (min(max(100vw, 375px), 1250px) - 375px) / 875);
19+
padding-bottom: calc(64px + (120 - 64) * (min(max(100vw, 375px), 1250px) - 375px) / 875);
2020
max-width: 1780px;
2121
margin: 0 auto;
2222
`;

web/src/pages/Home/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const Container = styled.div`
1212
background-color: ${({ theme }) => theme.lightBackground};
1313
padding: calc(32px + (132 - 32) * (min(max(100vw, 375px), 1250px) - 375px) / 875);
1414
padding-top: calc(32px + (72 - 32) * (min(max(100vw, 375px), 1250px) - 375px) / 875);
15-
padding-bottom: calc(64px + (96 - 64) * (min(max(100vw, 375px), 1250px) - 375px) / 875);
15+
padding-bottom: calc(64px + (120 - 64) * (min(max(100vw, 375px), 1250px) - 375px) / 875);
1616
max-width: 1780px;
1717
margin: 0 auto;
1818
`;

0 commit comments

Comments
 (0)