Skip to content

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

:art: Refine empty database relation state https://github.com/siyuan-note/siyuan/issues/12315

Daniel99c7eaa0580d
diff --git a/app/src/protyle/render/av/relation.ts b/app/src/protyle/render/av/relation.ts
index 0580ef7b11..e2a3d1baba 100644
--- a/app/src/protyle/render/av/relation.ts
+++ b/app/src/protyle/render/av/relation.ts
@@ -467,9 +467,7 @@ data-id="${escapeAttr(refElement?.getAttribute("data-id") || "")}">${escapeHtml(
</button>`;
}
if (!hasCandidates && !hasMore) {
- return `<button class="b3-menu__item av__relation-table-footer" data-relation-type="empty">
- <span class="b3-menu__label">${window.siyuan.languages.noMoreItems}</span>
-</button>`;
+ return `<div class="b3-list--empty av__relation-table-footer" data-relation-type="empty">${window.siyuan.languages.noMoreItems}</div>`;
}
return "";
};