This commit is contained in:
Vanessa 2025-08-31 11:42:49 +08:00
parent c8a3ec52d7
commit 3404395cfa
2 changed files with 2 additions and 2 deletions

View file

@ -415,7 +415,7 @@ export const genHintItemHTML = (item: IBlock) => {
if (attrHTML) { if (attrHTML) {
attrHTML = `<div class="fn__flex b3-list-item__meta b3-list-item__showall">${attrHTML}</div>`; attrHTML = `<div class="fn__flex b3-list-item__meta b3-list-item__showall">${attrHTML}</div>`;
} }
let countHTML = ''; let countHTML = "";
if (item.refCount) { if (item.refCount) {
countHTML = `<span class="popover__block counter b3-tooltips b3-tooltips__w" aria-label="${window.siyuan.languages.ref}">${item.refCount}</span>`; countHTML = `<span class="popover__block counter b3-tooltips b3-tooltips__w" aria-label="${window.siyuan.languages.ref}">${item.refCount}</span>`;
} }

View file

@ -1324,7 +1324,7 @@ const onSearch = (data: IBlock[], edit: Protyle, element: Element, config: Confi
let newData; let newData;
data.forEach((item) => { data.forEach((item) => {
const title = getNotebookName(item.box) + getDisplayName(item.hPath, false); const title = getNotebookName(item.box) + getDisplayName(item.hPath, false);
let countHTML = ''; let countHTML = "";
if (item.children) { if (item.children) {
resultHTML += `<div class="b3-list-item"> resultHTML += `<div class="b3-list-item">
<span class="b3-list-item__toggle b3-list-item__toggle--hl"> <span class="b3-list-item__toggle b3-list-item__toggle--hl">