From 5cdf81581c9fc1922e4d7ff9a17d286fd26031c8 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Fri, 27 Oct 2023 10:49:17 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/9526 --- app/src/util/Tree.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/app/src/util/Tree.ts b/app/src/util/Tree.ts index 82d91d680..0e891086c 100644 --- a/app/src/util/Tree.ts +++ b/app/src/util/Tree.ts @@ -68,7 +68,7 @@ export class Tree { iconHTML = ``; } else if (item.type === "outline") { titleTip = ` aria-label="${escapeAriaLabel(Lute.BlockDOM2Content(item.name))}"`; - iconHTML = ``; + iconHTML = ``; } let countHTML = ""; if (item.count) { @@ -123,10 +123,14 @@ ${item.label ? "data-label='" + item.label + "'" : ""}> countHTML = `${item.count}`; } let iconHTML; - if (item.type === "NodeDocument") { - iconHTML = `${unicode2Emoji(item.ial.icon || Constants.SIYUAN_IMAGE_FILE)}`; + if (type === "outline") { + iconHTML = ``; } else { - iconHTML = ``; + if (item.type === "NodeDocument") { + iconHTML = `${unicode2Emoji(item.ial.icon || Constants.SIYUAN_IMAGE_FILE)}`; + } else { + iconHTML = ``; + } } let style = ""; if (isMobile()) {