Skip to content

Commit 1cdb391

Browse files
committed
feat(web): max-width for layout elements and stats grid width adjustment
1 parent 161611e commit 1cdb391

File tree

5 files changed

+9
-1
lines changed

5 files changed

+9
-1
lines changed

web/src/pages/Cases/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ const Container = styled.div`
1414
padding: calc(32px + (136 - 32) * (min(max(100vw, 375px), 1250px) - 375px) / 875);
1515
padding-top: calc(32px + (80 - 32) * (min(max(100vw, 375px), 1250px) - 375px) / 875);
1616
padding-bottom: calc(64px + (96 - 64) * (min(max(100vw, 375px), 1250px) - 375px) / 875);
17+
max-width: 1780px;
18+
margin: 0 auto;
1719
`;
1820

1921
const Cases: React.FC = () => {

web/src/pages/Courts/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ const Container = styled.div`
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);
1212
padding-bottom: calc(64px + (96 - 64) * (min(max(100vw, 375px), 1250px) - 375px) / 875);
13+
max-width: 1780px;
14+
margin: 0 auto;
1315
`;
1416

1517
const Courts: React.FC = () => {

web/src/pages/Dashboard/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ const Container = styled.div`
1616
padding: calc(32px + (136 - 32) * (min(max(100vw, 375px), 1250px) - 375px) / 875);
1717
padding-top: calc(32px + (80 - 32) * (min(max(100vw, 375px), 1250px) - 375px) / 875);
1818
padding-bottom: calc(64px + (96 - 64) * (min(max(100vw, 375px), 1250px) - 375px) / 875);
19+
max-width: 1780px;
20+
margin: 0 auto;
1921
`;
2022

2123
const StyledCasesDisplay = styled(CasesDisplay)`

web/src/pages/Home/CourtOverview/Stats.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const StyledCard = styled(Card)`
2424
padding-left: calc(16px + (35 - 16) * (min(max(100vw, 375px), 1250px) - 375px) / 875);
2525
padding-bottom: 16px;
2626
display: grid;
27-
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
27+
grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
2828
2929
${landscapeStyle(
3030
() => css`

web/src/pages/Home/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ const Container = styled.div`
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);
1515
padding-bottom: calc(64px + (96 - 64) * (min(max(100vw, 375px), 1250px) - 375px) / 875);
16+
max-width: 1780px;
17+
margin: 0 auto;
1618
`;
1719

1820
const Home: React.FC = () => {

0 commit comments

Comments
 (0)