Skip to content

Commit c4848a9

Browse files
committed
fix(web): pages horizontal paddings adjustments, vertical paddings between home components
1 parent d7dbc98 commit c4848a9

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

web/src/components/DisputeCard/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import { isUndefined } from "utils/index";
1717

1818
const StyledCard = styled(Card)`
1919
width: 100%;
20-
height: calc(272px + (296 - 270) * (min(max(100vw, 375px), 1250px) - 375px) / 875);
20+
height: calc(280px + (296 - 280) * (min(max(100vw, 375px), 1250px) - 375px) / 875);
2121
2222
${landscapeStyle(
2323
() =>

web/src/components/LatestCases.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { SkeletonDisputeCard } from "components/StyledSkeleton";
77
import { isUndefined } from "utils/index";
88

99
const Container = styled.div`
10-
margin-top: calc(64px + (80 - 64) * (min(max(100vw, 375px), 1250px) - 375px) / 875);
10+
margin-top: calc(48px + (80 - 48) * (min(max(100vw, 375px), 1250px) - 375px) / 875);
1111
`;
1212

1313
const Title = styled.h1`

web/src/pages/Cases/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import CasesFetcher from "./CasesFetcher";
77
const Container = styled.div`
88
width: 100%;
99
background-color: ${({ theme }) => theme.lightBackground};
10-
padding: calc(32px + (136 - 32) * (min(max(100vw, 375px), 1250px) - 375px) / 875);
10+
padding: calc(24px + (136 - 24) * (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 + (120 - 64) * (min(max(100vw, 375px), 1250px) - 375px) / 875);
12+
padding-bottom: calc(84px + (120 - 84) * (min(max(100vw, 375px), 1250px) - 375px) / 875);
1313
max-width: 1780px;
1414
margin: 0 auto;
1515
`;

web/src/pages/Courts/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import CourtDetails from "./CourtDetails";
77
const Container = styled.div`
88
width: 100%;
99
background-color: ${({ theme }) => theme.lightBackground};
10-
padding: calc(32px + (136 - 32) * (min(max(100vw, 375px), 1250px) - 375px) / 875);
10+
padding: calc(24px + (136 - 24) * (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 + (120 - 64) * (min(max(100vw, 375px), 1250px) - 375px) / 875);
12+
padding-bottom: calc(84px + (120 - 84) * (min(max(100vw, 375px), 1250px) - 375px) / 875);
1313
max-width: 1780px;
1414
margin: 0 auto;
1515
`;

web/src/pages/Dashboard/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ import Courts from "./Courts";
1414
const Container = styled.div`
1515
width: 100%;
1616
background-color: ${({ theme }) => theme.lightBackground};
17-
padding: calc(32px + (136 - 32) * (min(max(100vw, 375px), 1250px) - 375px) / 875);
17+
padding: calc(24px + (136 - 24) * (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 + (120 - 64) * (min(max(100vw, 375px), 1250px) - 375px) / 875);
19+
padding-bottom: calc(84px + (120 - 84) * (min(max(100vw, 375px), 1250px) - 375px) / 875);
2020
max-width: 1780px;
2121
margin: 0 auto;
2222
`;

web/src/pages/Home/Community/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { Element } from "./Element";
66
import { section } from "consts/community-elements";
77

88
const Container = styled.div`
9-
margin-top: 64px;
9+
margin-top: calc(44px + (64 - 44) * (min(max(100vw, 375px), 1250px) - 375px) / 875);
1010
1111
h1 {
1212
margin-bottom: calc(16px + (48 - 16) * (min(max(100vw, 375px), 1250px) - 375px) / 875);

web/src/pages/Home/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ import { getOneYearAgoTimestamp } from "utils/date";
1010
const Container = styled.div`
1111
width: 100%;
1212
background-color: ${({ theme }) => theme.lightBackground};
13-
padding: calc(32px + (132 - 32) * (min(max(100vw, 375px), 1250px) - 375px) / 875);
13+
padding: calc(24px + (132 - 24) * (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 + (120 - 64) * (min(max(100vw, 375px), 1250px) - 375px) / 875);
15+
padding-bottom: calc(84px + (120 - 84) * (min(max(100vw, 375px), 1250px) - 375px) / 875);
1616
max-width: 1780px;
1717
margin: 0 auto;
1818
`;

0 commit comments

Comments
 (0)