Limit file tree height to max content size

- can still be resized, just not bigger than the full file list
This commit is contained in:
Mattias Granlund 2023-08-31 13:34:53 +01:00
parent 7541d65fab
commit f4239ca5f2

View File

@ -391,9 +391,9 @@
<div
bind:this={thViewport}
style:height={`${treeHeight}px`}
class="hide-native-scrollbar relative shrink-0 overflow-scroll overscroll-none"
class="hide-native-scrollbar relative max-h-fit shrink-0 overflow-scroll overscroll-none"
>
<div bind:this={thContents} class="px-2">
<div bind:this={thContents} class="px-2 pb-2">
<FileTree node={filesToFileTree(files)} isRoot={true} />
</div>
</div>