Skip to content

Commit 0673b5d

Browse files
authored
Merge pull request #8446 from gitbutlerapp/improve-tree-view-performanceLane
Performance: It turns out that height 100% in list items is causing performance issues
2 parents 122f89e + 05f525a commit 0673b5d

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

packages/ui/src/lib/file/FileIndent.svelte

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
{#if depth && depth > 0}
1010
<div class="indent-wrapper">
1111
{#each Array(depth) as _}
12-
<div class="indent-wrapper__line" style="height: 100%;"></div>
12+
<div class="indent-wrapper__line"></div>
1313
{/each}
1414
</div>
1515
{/if}
@@ -19,14 +19,14 @@
1919
display: flex;
2020
align-items: center;
2121
/* background-color: rgba(0, 0, 0, 0.1); */
22-
height: 100%;
22+
/* height: 100%; */
2323
gap: 6px;
2424
}
2525
2626
.indent-wrapper__line {
2727
position: relative;
2828
width: 10px;
29-
height: 100%;
29+
/* height: 100%; */
3030
/* background-color: rgba(0, 0, 0, 0.1); */
3131
3232
&:before {
@@ -35,7 +35,7 @@
3535
top: -50%;
3636
left: 50%;
3737
width: 1px;
38-
height: 200%;
38+
/* height: 200%; */
3939
transform: translateX(-50%);
4040
background-color: var(--clr-border-1);
4141
opacity: 0.4;

packages/ui/src/lib/file/FileListItemV3.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@
218218
display: flex;
219219
align-items: center;
220220
gap: 6px;
221-
height: 100%;
221+
/* height: 100%; */
222222
}
223223
224224
.draggable-handle {

packages/ui/src/lib/file/FolderListItem.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
align-items: center;
111111
gap: 6px;
112112
color: var(--clr-text-2);
113-
height: 100%;
113+
/* height: 100%; */
114114
}
115115
116116
.folder-list-item__arrow {

0 commit comments

Comments
 (0)