mirror of
https://github.com/coleam00/bolt.new-any-llm
synced 2024-12-27 22:33:03 +00:00
fix: make file tree scrollable (#14)
This commit is contained in:
parent
8613e390cc
commit
14747cfa0f
@ -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
|
||||
|
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user