An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: https://github.com/siyuan-note/siyuan/issues/15061
Vanessae48560987c14
diff --git a/app/src/protyle/render/av/render.ts b/app/src/protyle/render/av/render.tsindex d7985ae2b8..4b42e11602 100644--- a/app/src/protyle/render/av/render.ts+++ b/app/src/protyle/render/av/render.ts@@ -475,7 +475,7 @@ export const refreshAV = (protyle: IProtyle, operation: IOperation) => {});addDragFill(item.querySelector(".av__cell--select"));}- if (operation.action === "setAttrViewBlockView") {+ if (operation.action === "setAttrViewBlockView") {const viewTabElement = item.querySelector(`.av__views > .layout-tab-bar > .item[data-id="${operation.id}"]`) as HTMLElement;if (viewTabElement) {item.dataset.pageSize = viewTabElement.dataset.page;@@ -487,10 +487,14 @@ export const refreshAV = (protyle: IProtyle, operation: IOperation) => {// 更新属性面板renderAVAttribute(attrElement.parentElement, attrElement.dataset.nodeId, protyle);} else {- if (operation.action === "insertAttrViewBlock" && updateRow &&- !item.querySelector(`[data-id="${updateRow.getAttribute("data-id")}"]`)) {- showMessage(window.siyuan.languages.insertRowTip);- document.querySelector(".av__mask")?.remove();+ if (operation.action === "insertAttrViewBlock") {+ if (updateRow && !item.querySelector(`[data-id="${updateRow.getAttribute("data-id")}"]`)) {+ showMessage(window.siyuan.languages.insertRowTip);+ document.querySelector(".av__mask")?.remove();+ }+ if (item.getAttribute("data-av-type") === "gallery") {+ item.querySelector(`.av__gallery-item[data-id="${operation.srcs[0].id}"]`)?.querySelector(".av__gallery-fields").classList.add("av__gallery-fields--edit");+ }}}item.removeAttribute("data-loading");diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.tsindex e571072780..1866d9b742 100644--- a/app/src/protyle/wysiwyg/index.ts+++ b/app/src/protyle/wysiwyg/index.ts@@ -482,7 +482,7 @@ export class WYSIWYG {nextList.push(sideElement);}sideElement = sideElement.nextElementSibling as HTMLElement;- if (!sideElement || sideElement.classList.contains("av-add-bottom")) {+ if (!sideElement || sideElement.classList.contains("av__gallery-add")) {nextList = [];break;}