From 9919cca00e4315d0efd4dc0e8dcba9287de79f9b Mon Sep 17 00:00:00 2001 From: kunish Date: Thu, 31 Aug 2023 02:06:26 +0800 Subject: [PATCH] feat: hide scrollbar, update overlay menu --- src/App.tsx | 2 +- src/components/Collpase.tsx | 2 +- src/components/Header.tsx | 4 ++-- src/index.css | 4 ++++ 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 4ce1b3f2..1104523b 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -27,7 +27,7 @@ export const App = () => { >
-
+
diff --git a/src/components/Collpase.tsx b/src/components/Collpase.tsx index 946fb3b3..55858ff5 100644 --- a/src/components/Collpase.tsx +++ b/src/components/Collpase.tsx @@ -19,7 +19,7 @@ const Collapse: ParentComponent = (props) => { const getCollapseContentClassName = () => { const openedClassName = 'opacity-100' - const closedClassName = 'opacity-0 scale-y-0' + const closedClassName = 'opacity-0' return props.isOpen ? openedClassName : closedClassName } diff --git a/src/components/Header.tsx b/src/components/Header.tsx index 6c997edb..e0280aaa 100644 --- a/src/components/Header.tsx +++ b/src/components/Header.tsx @@ -46,7 +46,7 @@ const ThemeSwitcher = () => (