mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 00:20:47 +02:00
This commit is contained in:
parent
1017610ec8
commit
877e2c4334
1 changed files with 2 additions and 2 deletions
|
@ -33,10 +33,10 @@ const genSearchList = (element: Element, keyword: string, avId?: string, exclude
|
||||||
response.data.results.forEach((item: IAVItem & { children: IAVItem[] }, index: number) => {
|
response.data.results.forEach((item: IAVItem & { children: IAVItem[] }, index: number) => {
|
||||||
const hasChildren = item.children && item.children.length > 0 && excludes;
|
const hasChildren = item.children && item.children.length > 0 && excludes;
|
||||||
html += `<div class="b3-list-item b3-list-item--narrow${index === 0 ? " b3-list-item--focus" : ""}" data-av-id="${item.avID}" data-block-id="${item.blockID}">
|
html += `<div class="b3-list-item b3-list-item--narrow${index === 0 ? " b3-list-item--focus" : ""}" data-av-id="${item.avID}" data-block-id="${item.blockID}">
|
||||||
<span class="b3-list-item__toggle b3-list-item__toggle--hl${excludes ? "" : " fn__none"}" style="align-self: flex-start;margin-top: 4px;">
|
<span class="b3-list-item__toggle b3-list-item__toggle--hl${excludes ? "" : " fn__none"}" style="height:auto;align-self: stretch;margin: 4px 0;">
|
||||||
<svg class="b3-list-item__arrow">${hasChildren ? '<use xlink:href="#iconRight"></use>' : ""}</svg>
|
<svg class="b3-list-item__arrow">${hasChildren ? '<use xlink:href="#iconRight"></use>' : ""}</svg>
|
||||||
</span>
|
</span>
|
||||||
<span class="fn__space"></span>
|
<span class="fn__space--small"></span>
|
||||||
<div class="b3-list-item--two fn__flex-1">
|
<div class="b3-list-item--two fn__flex-1">
|
||||||
<div class="b3-list-item__first">
|
<div class="b3-list-item__first">
|
||||||
<span class="b3-list-item__text">${escapeHtml(item.avName || window.siyuan.languages._kernel[267])}</span>
|
<span class="b3-list-item__text">${escapeHtml(item.avName || window.siyuan.languages._kernel[267])}</span>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue