💄 bookmark panel

This commit is contained in:
Vanessa 2022-05-30 15:41:20 +08:00
parent ded9e7d5b1
commit dd51b98101
2 changed files with 9 additions and 1 deletions

View file

@ -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 {

View file

@ -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>`
}