Skip to content

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

:art: https://github.com/siyuan-note/siyuan/issues/16088

Vanessacce7d31652ad
diff --git a/app/src/card/openCard.ts b/app/src/card/openCard.ts
index 2ece51c455..88872e0032 100644
--- a/app/src/card/openCard.ts
+++ b/app/src/card/openCard.ts
@@ -335,7 +335,7 @@ export const bindCardEvent = async (options: {
return;
}
const moreElement = hasClosestByAttribute(target, "data-type", "more");
- if (moreElement) {
+ if (moreElement && currentCard) {
event.stopPropagation();
event.preventDefault();
if (filterElement.getAttribute("data-cardtype") === "all" && filterElement.getAttribute("data-id")) {
@@ -874,6 +874,7 @@ const allDone = (countElement: Element, editor: Protyle, actionElements: NodeLis
emptyElement.classList.remove("fn__none");
actionElements[0].classList.add("fn__none");
actionElements[1].classList.add("fn__none");
+ countElement.parentElement.querySelector('[data-type="more"]').classList.add("fn__none");
};
const newRound = (countElement: Element, editor: Protyle, actionElements: NodeListOf<Element>, unreviewedCount: number) => {