mirror of
https://github.com/go-gitea/gitea
synced 2024-12-22 20:07:53 +01:00
fix
This commit is contained in:
parent
678e0a2eeb
commit
f5d22f0ee0
@ -18,7 +18,9 @@
|
||||
{{else}}
|
||||
<div class="item-directory" title="{{.Name}}">
|
||||
<!-- directory -->
|
||||
{{svg "octicon-chevron-down"}}
|
||||
{{svg "octicon-chevron-right" 16 "tw-hidden"}}
|
||||
{{svg "octicon-chevron-down" 16}}
|
||||
{{svg "octicon-file-directory-fill" 16 "text primary tw-hidden"}}
|
||||
{{svg "octicon-file-directory-open-fill" 16 "text primary"}}
|
||||
<span class="gt-ellipsis">{{.Name}}</span>
|
||||
</div>
|
||||
|
@ -51,6 +51,7 @@ export function initDiffFileTree() {
|
||||
for (const el of document.querySelectorAll<HTMLInputElement>('.file-tree-items .item-directory')) {
|
||||
el.addEventListener('click', () => {
|
||||
toggleElem(el.nextElementSibling);
|
||||
toggleElem(el.querySelectorAll('.svg.octicon-chevron-right, .svg.octicon-chevron-down, .svg.octicon-file-directory-fill, .svg.octicon-file-directory-open-fill'));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user