Skip to content

Commit e1e9160

Browse files
authored
fix(react): file tree scroll visibility (#399)
1 parent e288f4e commit e1e9160

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/react/src/Panels/EditorPanel.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export function EditorPanel({
7979
</div>
8080
</div>
8181
<FileTree
82-
className="flex-grow py-2 border-r border-tk-elements-app-borderColor text-sm"
82+
className="flex flex-col flex-grow py-2 border-r border-tk-elements-app-borderColor text-sm overflow-y-auto overflow-x-hidden"
8383
i18n={i18n}
8484
selectedFile={selectedFile}
8585
hideRoot={hideRoot ?? true}

packages/react/src/core/FileTree.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ export function FileTree({
125125
directory=""
126126
onFileChange={onFileChange}
127127
allowEditPatterns={allowEditPatterns}
128-
triggerProps={{ className: 'h-full', 'data-testid': 'file-tree-root-context-menu' }}
128+
triggerProps={{ className: 'h-full min-h-4', 'data-testid': 'file-tree-root-context-menu' }}
129129
/>
130130
</div>
131131
);

0 commit comments

Comments
 (0)