From ef840bc19c145e332181c1fda690ea3f0dccef30 Mon Sep 17 00:00:00 2001 From: milaiwi Date: Sat, 31 Aug 2024 12:43:21 -0500 Subject: [PATCH] Fixed bottom note bug. --- src/components/Sidebars/FileSideBar/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Sidebars/FileSideBar/index.tsx b/src/components/Sidebars/FileSideBar/index.tsx index e0477a2d..9e79b20d 100644 --- a/src/components/Sidebars/FileSideBar/index.tsx +++ b/src/components/Sidebars/FileSideBar/index.tsx @@ -51,11 +51,11 @@ const FileExplorer: React.FC = ({ handleDirectoryToggle, lheight, }) => { - const [listHeight, setListHeight] = useState(lheight ?? window.innerHeight) + const [listHeight, setListHeight] = useState(lheight ?? window.innerHeight - 50) useEffect(() => { const updateHeight = () => { - setListHeight(lheight ?? window.innerHeight) + setListHeight(lheight ?? window.innerHeight - 50) } window.addEventListener('resize', updateHeight) return () => {