Skip to content

Commit 69d61b9

Browse files
authored
Merge pull request #1236 from kleros/fix(web)/padding-bottom-homepage
fix(web): layout unexpected paddings
2 parents d1e355a + 03d1634 commit 69d61b9

File tree

5 files changed

+12
-5
lines changed

5 files changed

+12
-5
lines changed

web/src/layout/index.tsx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ import Header from "./Header";
99
import Footer from "./Footer";
1010

1111
const Container = styled.div`
12+
display: flex;
13+
flex-direction: column;
1214
min-height: 100%;
1315
width: 100%;
1416
`;
@@ -23,6 +25,11 @@ const StyledToastContainer = styled(ToastContainer)`
2325
padding-top: 70px;
2426
`;
2527

28+
const OutletContainer = styled.div`
29+
flex: 1;
30+
background-color: ${({ theme }) => theme.lightBackground};
31+
`;
32+
2633
const Layout: React.FC = () => {
2734
const containerRef = useRef(null);
2835

@@ -32,7 +39,10 @@ const Layout: React.FC = () => {
3239
<Container>
3340
<Header />
3441
<StyledToastContainer />
35-
<Outlet />
42+
<OutletContainer>
43+
<Outlet />
44+
</OutletContainer>
45+
3646
<Footer />
3747
</Container>
3848
</StyledOverlayScrollbarsComponent>

web/src/pages/Cases/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import { BREAKPOINT_LANDSCAPE } from "styles/landscapeStyle";
77
import CasesDisplay from "components/CasesDisplay";
88
import CaseDetails from "./CaseDetails";
99
import { useFiltersContext } from "context/FilterProvider";
10+
1011
const Container = styled.div`
1112
width: 100%;
12-
min-height: calc(100vh - 144px);
1313
background-color: ${({ theme }) => theme.lightBackground};
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);

web/src/pages/Courts/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import CourtDetails from "./CourtDetails";
66

77
const Container = styled.div`
88
width: 100%;
9-
min-height: calc(100vh - 144px);
109
background-color: ${({ theme }) => theme.lightBackground};
1110
padding: calc(32px + (136 - 32) * (min(max(100vw, 375px), 1250px) - 375px) / 875);
1211
padding-top: calc(32px + (80 - 32) * (min(max(100vw, 375px), 1250px) - 375px) / 875);

web/src/pages/Dashboard/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import ConnectWallet from "components/ConnectWallet";
1212

1313
const Container = styled.div`
1414
width: 100%;
15-
min-height: calc(100vh - 144px);
1615
background-color: ${({ theme }) => theme.lightBackground};
1716
padding: calc(32px + (136 - 32) * (min(max(100vw, 375px), 1250px) - 375px) / 875);
1817
padding-top: calc(32px + (80 - 32) * (min(max(100vw, 375px), 1250px) - 375px) / 875);

web/src/pages/Home/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import { getOneYearAgoTimestamp } from "utils/date";
99

1010
const Container = styled.div`
1111
width: 100%;
12-
min-height: calc(100vh - 144px);
1312
background-color: ${({ theme }) => theme.lightBackground};
1413
padding: calc(32px + (132 - 32) * (min(max(100vw, 375px), 1250px) - 375px) / 875);
1514
padding-top: calc(32px + (72 - 32) * (min(max(100vw, 375px), 1250px) - 375px) / 875);

0 commit comments

Comments
 (0)