Skip to content

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

:art: fix https://github.com/siyuan-note/siyuan/issues/7399

Vanessac85b879cb76f
diff --git a/app/src/card/openCard.ts b/app/src/card/openCard.ts
index 436adff294..1a1dce62e6 100644
--- a/app/src/card/openCard.ts
+++ b/app/src/card/openCard.ts
@@ -6,6 +6,7 @@ import {Constants} from "../constants";
import {onGet} from "../protyle/util/onGet";
import {hasClosestByAttribute, hasClosestByClassName} from "../protyle/util/hasClosest";
import {viewCards} from "./viewCards";
+import {hideElements} from "../protyle/ui/hideElements";
export const openCard = () => {
const exit = window.siyuan.dialogs.find(item => {
@@ -149,6 +150,7 @@ export const openCardByData = (cardsData: ICard[], html = "") => {
}
event.preventDefault();
event.stopPropagation();
+ hideElements(["toolbar", "hint", "util"], editor.protyle);
if (type === "-1") {
editor.protyle.element.classList.remove("b3-dialog__cardblock--hide");
actionElements[0].classList.add("fn__none");