mirror of
https://github.com/stackblitz/bolt.new
synced 2024-11-27 14:32:46 +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