Skip to content

Commit

Permalink
Merge pull request #392 from milaiwi/note-bottom-bug
Browse files Browse the repository at this point in the history
Fixed bottom note bug.
  • Loading branch information
samlhuillier authored Sep 1, 2024
2 parents 2e9b34f + ef840bc commit 7fe26f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Sidebars/FileSideBar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ const FileExplorer: React.FC<FileExplorerProps> = ({
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 () => {
Expand Down

0 comments on commit 7fe26f1

Please sign in to comment.