From 8ec5735632663dd140e4569150243bfca2c74494 Mon Sep 17 00:00:00 2001 From: pheralb Date: Tue, 28 Jun 2022 18:40:19 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9A=92=EF=B8=8F=20Fix=20layout=20&=20respons?= =?UTF-8?q?ive.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/svgInfo.tsx | 12 +++++++----- src/layout/header/index.tsx | 31 ++++++++++++++++++++----------- src/layout/header/mobile.tsx | 5 +++-- src/layout/index.tsx | 2 +- src/pages/category/[category].tsx | 4 +--- 5 files changed, 32 insertions(+), 22 deletions(-) diff --git a/src/components/svgInfo.tsx b/src/components/svgInfo.tsx index d82cd62..e1eea96 100644 --- a/src/components/svgInfo.tsx +++ b/src/components/svgInfo.tsx @@ -58,28 +58,30 @@ const SVGInfo = (props: SVGCardProps) => { {props.title} - + - {props.title} website + {props.title} website - + ); }; diff --git a/src/layout/header/index.tsx b/src/layout/header/index.tsx index a5f34c2..e2af3bc 100644 --- a/src/layout/header/index.tsx +++ b/src/layout/header/index.tsx @@ -27,6 +27,7 @@ const Header = () => { return ( <> { ))} : } + icon={ + isOpen ? : + } onClick={onToggle} /> @@ -83,18 +86,24 @@ const Header = () => { + + + - - - + + + + + ); }; diff --git a/src/layout/header/mobile.tsx b/src/layout/header/mobile.tsx index 11d57e6..bd9f7c1 100644 --- a/src/layout/header/mobile.tsx +++ b/src/layout/header/mobile.tsx @@ -30,13 +30,14 @@ const Mobile = () => { right={0} display={mobileNav.isOpen ? "flex" : "none"} flexDirection="column" - p={2} + p={4} pb={4} - m={2} bg={bg} spacing={3} rounded="sm" shadow="sm" + borderWidth="1px" + zIndex={2} > {Links.map((link) => ( diff --git a/src/layout/index.tsx b/src/layout/index.tsx index 42f8a15..5bfae45 100644 --- a/src/layout/index.tsx +++ b/src/layout/index.tsx @@ -8,7 +8,7 @@ const Index = ({ children }: LayoutProps) => { return ( <>
- {children} + {children}