Skip to content

Commit 7cb9e6a

Browse files
committedOct 21, 2024
1 parent a1bc275 commit 7cb9e6a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎app/src/search/util.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1405,7 +1405,7 @@ ${unicode2Emoji(getNotebookIcon(item.box) || Constants.SIYUAN_IMAGE_NOTE, "b3-li
14051405
</div><div>`;
14061406
item.children.forEach((childItem, childIndex) => {
14071407
resultHTML += `<div style="padding-left: 36px" data-type="search-item" class="b3-list-item${childIndex === 0 && index === 0 ? " b3-list-item--focus" : ""}" data-node-id="${childItem.id}" data-root-id="${childItem.rootID}">
1408-
<svg class="b3-list-item__graphic"><use xlink:href="#${getIconByType(childItem.type)}"></use></svg>
1408+
<svg class="b3-list-item__graphic popover__block" data-id="${childItem.id}"><use xlink:href="#${getIconByType(childItem.type)}"></use></svg>
14091409
${unicode2Emoji(childItem.ial.icon, "b3-list-item__graphic", true)}
14101410
<span class="b3-list-item__text">${childItem.content}</span>
14111411
${getAttr(childItem)}
@@ -1415,7 +1415,7 @@ ${childItem.tag ? `<span class="b3-list-item__meta b3-list-item__meta--ellipsis"
14151415
resultHTML += "</div>";
14161416
} else {
14171417
resultHTML += `<div data-type="search-item" class="b3-list-item${index === 0 ? " b3-list-item--focus" : ""}" data-node-id="${item.id}" data-root-id="${item.rootID}">
1418-
<svg class="b3-list-item__graphic"><use xlink:href="#${getIconByType(item.type)}"></use></svg>
1418+
<svg class="b3-list-item__graphic popover__block" data-id="${item.id}"><use xlink:href="#${getIconByType(item.type)}"></use></svg>
14191419
${unicode2Emoji(item.ial.icon, "b3-list-item__graphic", true)}
14201420
<span class="b3-list-item__text">${item.content}</span>
14211421
${getAttr(item)}

0 commit comments

Comments
 (0)
Please sign in to comment.