From 3266fd7cc370a2bd5a761c7d02a29d94eaeb0f78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9B=90=EB=8D=94?= Date: Thu, 4 Feb 2021 11:00:34 +0900 Subject: [PATCH] fix: fixed dropdown breaks on small screen close: https://github.com/koreanbots/v2-testing/issues/21 --- app.css | 9 +++++++ components/Navbar.tsx | 62 ++++++++++++++++++++++++++++--------------- 2 files changed, 50 insertions(+), 21 deletions(-) diff --git a/app.css b/app.css index 1e78b6b..cc57388 100644 --- a/app.css +++ b/app.css @@ -77,6 +77,15 @@ i { background: #2e3338 !important; } +.scroll-none { + -ms-overflow-style: none; + scrollbar-width: none; +} + +.scroll-none ::-webkit-scrollbar { + display: none; +} + button { outline: none !important; } \ No newline at end of file diff --git a/components/Navbar.tsx b/components/Navbar.tsx index f6a8297..ef16ea5 100644 --- a/components/Navbar.tsx +++ b/components/Navbar.tsx @@ -77,7 +77,7 @@ const Navbar = (): JSX.Element => { redirectTo(router, 'login') } }} className='lg:hover:text-gray-300 flex items-center px-3 py-4 w-full hover:text-gray-500 text-gray-700 text-sm font-semibold sm:w-auto lg:py-2 lg:text-gray-100 cursor-pointer'> - { userCache ? + { userCache?.id ? <> {userCache.username} @@ -111,11 +111,18 @@ const Navbar = (): JSX.Element => {
-