Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: fix https://github.com/siyuan-note/siyuan/issues/11633

Vanessa0637a03e82c0
diff --git a/app/src/layout/dock/Files.ts b/app/src/layout/dock/Files.ts
index e5bb5fc17f..37bed62b15 100644
--- a/app/src/layout/dock/Files.ts
+++ b/app/src/layout/dock/Files.ts
@@ -942,6 +942,10 @@ export class Files extends Model {
const arrowElement = liElement.querySelector(".b3-list-item__arrow");
arrowElement.classList.add("b3-list-item__arrow--open");
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>`);
this.setCurrent(this.element.querySelector(`ul[data-url="${data.box}"] li[data-path="${filePath}"]`));
}