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/10414

Vanessa66afcafd84f8
diff --git a/app/src/protyle/render/av/view.ts b/app/src/protyle/render/av/view.ts
index d452aa1102..9aade0c428 100644
--- a/app/src/protyle/render/av/view.ts
+++ b/app/src/protyle/render/av/view.ts
@@ -375,10 +375,12 @@ export const addView = (protyle: IProtyle, blockElement: Element) => {
transaction(protyle, [{
action: "addAttrViewView",
avID,
+ layout:"gallery",
id,
blockID: blockElement.getAttribute("data-node-id")
}], [{
action: "removeAttrViewView",
+ layout:"gallery",
avID,
id,
blockID: blockElement.getAttribute("data-node-id")