fix: make file tree scrollable (#14)

This commit is contained in:
Dominic Elm 2024-07-26 11:05:53 +02:00 committed by GitHub
parent 8613e390cc
commit 14747cfa0f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 3 deletions

View File

@ -62,8 +62,8 @@ export const EditorPanel = memo(
return (
<PanelGroup direction="horizontal">
<Panel className="flex flex-col" defaultSize={25} minSize={10} collapsible={true}>
<div className="border-r h-full">
<Panel defaultSize={25} minSize={10} collapsible>
<div className="flex flex-col border-r h-full">
<div className="flex items-center gap-2 bg-gray-50 border-b px-4 py-1 min-h-[34px]">
<div className="i-ph:tree-structure-duotone shrink-0" />
Files

View File

@ -15,8 +15,9 @@ export const FileTreePanel = memo(({ files, unsavedFiles, selectedFile, onFileSe
renderLogger.trace('FileTreePanel');
return (
<div className="h-full">
<div className="flex-1 overflow-y-scroll">
<FileTree
className="h-full"
files={files}
unsavedFiles={unsavedFiles}
rootFolder={WORK_DIR}