From 03d1634f6135ce78da7a64ccebdc813ce8552951 Mon Sep 17 00:00:00 2001 From: marino <102478601+kemuru@users.noreply.github.com> Date: Wed, 20 Sep 2023 14:32:14 +0200 Subject: [PATCH] fix(web): layout unexpected paddings --- web/src/layout/index.tsx | 12 +++++++++++- web/src/pages/Cases/index.tsx | 2 +- web/src/pages/Courts/index.tsx | 1 - web/src/pages/Dashboard/index.tsx | 1 - web/src/pages/Home/index.tsx | 1 - 5 files changed, 12 insertions(+), 5 deletions(-) diff --git a/web/src/layout/index.tsx b/web/src/layout/index.tsx index ecfb3153a..c65773b27 100644 --- a/web/src/layout/index.tsx +++ b/web/src/layout/index.tsx @@ -9,6 +9,8 @@ import Header from "./Header"; import Footer from "./Footer"; const Container = styled.div` + display: flex; + flex-direction: column; min-height: 100%; width: 100%; `; @@ -23,6 +25,11 @@ const StyledToastContainer = styled(ToastContainer)` padding-top: 70px; `; +const OutletContainer = styled.div` + flex: 1; + background-color: ${({ theme }) => theme.lightBackground}; +`; + const Layout: React.FC = () => { const containerRef = useRef(null); @@ -32,7 +39,10 @@ const Layout: React.FC = () => {
- + + + +