File tree Expand file tree Collapse file tree 5 files changed +12
-5
lines changed
Expand file tree Collapse file tree 5 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ import Header from "./Header";
99import Footer from "./Footer" ;
1010
1111const 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+
2633const 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 >
Original file line number Diff line number Diff line change @@ -7,9 +7,9 @@ import { BREAKPOINT_LANDSCAPE } from "styles/landscapeStyle";
77import CasesDisplay from "components/CasesDisplay" ;
88import CaseDetails from "./CaseDetails" ;
99import { useFiltersContext } from "context/FilterProvider" ;
10+
1011const 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);
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ import CourtDetails from "./CourtDetails";
66
77const 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);
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ import ConnectWallet from "components/ConnectWallet";
1212
1313const 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);
Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ import { getOneYearAgoTimestamp } from "utils/date";
99
1010const 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);
You can’t perform that action at this time.
0 commit comments