Skip to content

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

:lipstick: bookmark panel

Vanessadd51b98101b5
diff --git a/app/src/assets/scss/_list.scss b/app/src/assets/scss/_list.scss
index 0e0ca903d8..ed9eff012c 100644
--- a/app/src/assets/scss/_list.scss
+++ b/app/src/assets/scss/_list.scss
@@ -117,6 +117,14 @@
flex-shrink: 0;
height: 14px;
width: 12px;
+ line-height: 14px;
+ font-size: 12px;
+
+ // doc icon in the bookmark panel
+ svg {
+ width: 12px;
+ height: 14px;
+ }
}
&__arrow {
diff --git a/app/src/util/Tree.ts b/app/src/util/Tree.ts
index c1ac13cf5b..acc05d115e 100644
--- a/app/src/util/Tree.ts
+++ b/app/src/util/Tree.ts
@@ -104,7 +104,7 @@ ${item.label ? "data-label='" + item.label + "'" : ""}>
}
let iconHTML;
if (item.type === "NodeDocument") {
- iconHTML = `<span data-defids='["${item.defID}"]' class="b3-list-item__icon popover__block" data-id="${item.id}">${unicode2Emoji(item.ial.icon || Constants.SIYUAN_IMAGE_FILE)}</span>`
+ iconHTML = `<span data-defids='["${item.defID}"]' class="b3-list-item__graphic popover__block" data-id="${item.id}">${unicode2Emoji(item.ial.icon || Constants.SIYUAN_IMAGE_FILE)}</span>`
} else {
iconHTML = `<svg data-defids='["${item.defID}"]' class="b3-list-item__graphic popover__block" data-id="${item.id}"><use xlink:href="#${getIconByType(item.type, item.subType)}"></use></svg>`
}