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/15092
Vanessaed16a81cb58d
diff --git a/app/src/protyle/render/av/render.ts b/app/src/protyle/render/av/render.tsindex 0f03529676..3f118bba59 100644--- a/app/src/protyle/render/av/render.ts+++ b/app/src/protyle/render/av/render.ts@@ -467,6 +467,24 @@ export const refreshAV = (protyle: IProtyle, operation: IOperation) => {(rowItem.querySelector(`[data-col-id="${operation.id}"]`) as HTMLElement).style.width = operation.data;});});+ } else if (operation.action === "setAttrViewCardSize") {+ Array.from(protyle.wysiwyg.element.querySelectorAll(`[data-av-id="${operation.avID}"]`)).forEach((item: HTMLElement) => {+ const galleryElement = item.querySelector(".av__gallery") as HTMLElement;+ if (galleryElement) {+ galleryElement.classList.remove("av__gallery--small", "av__gallery--big");+ if (operation.data === 0) {+ galleryElement.classList.add("av__gallery--small");+ } else if (operation.data === 2) {+ galleryElement.classList.add("av__gallery--big");+ }+ }+ });+ } else if (operation.action === "setAttrViewCardAspectRatio") {+ Array.from(protyle.wysiwyg.element.querySelectorAll(`[data-av-id="${operation.avID}"]`)).forEach((item: HTMLElement) => {+ item.querySelectorAll(".av__gallery-cover").forEach(coverItem => {+ coverItem.className = "av__gallery-cover av__gallery-cover--" + operation.data;+ });+ });} else {// 修改表格名 avID 传入到 id 上了 https://github.com/siyuan-note/siyuan/issues/12724const avID = operation.action === "setAttrViewName" ? operation.id : operation.avID;