mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
This commit is contained in:
parent
41277a9434
commit
576f60d693
1 changed files with 3 additions and 0 deletions
|
|
@ -777,6 +777,9 @@ export class Files extends Model {
|
|||
if (liElement) {
|
||||
liElement.setAttribute("data-count", data.data.subFileCount);
|
||||
liElement.querySelector(".ariaLabel")?.setAttribute("aria-label", this.genDocAriaLabel(data.data, escapeGreat));
|
||||
if (data.data.subFileCount === 0) {
|
||||
liElement.querySelector(".b3-list-item__toggle")?.classList.add("fn__hidden");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue