Skip to content

Commit f5d22f0

Browse files
committed
fix
1 parent 678e0a2 commit f5d22f0

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

templates/repo/diff/file_tree_item.tmpl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
{{else}}
1919
<div class="item-directory" title="{{.Name}}">
2020
<!-- directory -->
21-
{{svg "octicon-chevron-down"}}
21+
{{svg "octicon-chevron-right" 16 "tw-hidden"}}
22+
{{svg "octicon-chevron-down" 16}}
23+
{{svg "octicon-file-directory-fill" 16 "text primary tw-hidden"}}
2224
{{svg "octicon-file-directory-open-fill" 16 "text primary"}}
2325
<span class="gt-ellipsis">{{.Name}}</span>
2426
</div>

web_src/js/features/repo-diff-filetree.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ export function initDiffFileTree() {
5151
for (const el of document.querySelectorAll<HTMLInputElement>('.file-tree-items .item-directory')) {
5252
el.addEventListener('click', () => {
5353
toggleElem(el.nextElementSibling);
54+
toggleElem(el.querySelectorAll('.svg.octicon-chevron-right, .svg.octicon-chevron-down, .svg.octicon-file-directory-fill, .svg.octicon-file-directory-open-fill'));
5455
});
5556
}
5657
}

0 commit comments

Comments
 (0)