mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
This commit is contained in:
parent
43b18ad750
commit
0637a03e82
1 changed files with 4 additions and 0 deletions
|
|
@ -942,6 +942,10 @@ export class Files extends Model {
|
||||||
const arrowElement = liElement.querySelector(".b3-list-item__arrow");
|
const arrowElement = liElement.querySelector(".b3-list-item__arrow");
|
||||||
arrowElement.classList.add("b3-list-item__arrow--open");
|
arrowElement.classList.add("b3-list-item__arrow--open");
|
||||||
arrowElement.parentElement.classList.remove("fn__hidden");
|
arrowElement.parentElement.classList.remove("fn__hidden");
|
||||||
|
const emojiElement = liElement.querySelector(".b3-list-item__icon");
|
||||||
|
if (emojiElement.textContent === unicode2Emoji(Constants.SIYUAN_IMAGE_FILE)) {
|
||||||
|
emojiElement.textContent = unicode2Emoji(Constants.SIYUAN_IMAGE_FOLDER);
|
||||||
|
}
|
||||||
liElement.insertAdjacentHTML("afterend", `<ul>${fileHTML}</ul>`);
|
liElement.insertAdjacentHTML("afterend", `<ul>${fileHTML}</ul>`);
|
||||||
this.setCurrent(this.element.querySelector(`ul[data-url="${data.box}"] li[data-path="${filePath}"]`));
|
this.setCurrent(this.element.querySelector(`ul[data-url="${data.box}"] li[data-path="${filePath}"]`));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue