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: fix https://github.com/siyuan-note/siyuan/issues/11356
Vanessa47599388e247
diff --git a/app/src/protyle/render/av/col.ts b/app/src/protyle/render/av/col.tsindex 1eb2bd955a..cf2bfd610c 100644--- a/app/src/protyle/render/av/col.ts+++ b/app/src/protyle/render/av/col.ts@@ -185,7 +185,7 @@ export const getEditHTML = (options: {<span class="b3-menu__accelerator">${isSelf ? window.siyuan.languages.thisDatabase : ""}</span><svg class="b3-menu__icon b3-menu__icon--small"><use xlink:href="#iconRight"></use></svg></button>-<label class="b3-menu__item fn__none">+<label class="b3-menu__item"><span class="fn__flex-center">${window.siyuan.languages.backRelation}</span><svg class="b3-menu__icon b3-menu__icon--small fn__none"><use xlink:href="#iconHelp"></use></svg><span class="fn__space fn__flex-1"></span>diff --git a/app/src/protyle/render/av/relation.ts b/app/src/protyle/render/av/relation.tsindex f83dc7bdef..a8d41e1b8d 100644--- a/app/src/protyle/render/av/relation.ts+++ b/app/src/protyle/render/av/relation.ts@@ -186,16 +186,10 @@ export const toggleUpdateRelationBtn = (menuItemsElement: HTMLElement, avId: strswitchElement.checked = oldValue.isTwoWay;}}- if (searchElement.dataset.avId === avId && oldValue.avID === avId && oldValue.isTwoWay) {- switchItemElement.classList.add("fn__none");- inputItemElement.classList.add("fn__none");+ if (switchElement.checked) {+ inputItemElement.classList.remove("fn__none");} else {- switchItemElement.classList.remove("fn__none");- if (switchElement.checked) {- inputItemElement.classList.remove("fn__none");- } else {- inputItemElement.classList.add("fn__none");- }+ inputItemElement.classList.add("fn__none");}if ((searchElement.dataset.avId && oldValue.avID !== searchElement.dataset.avId) || oldValue.isTwoWay !== switchElement.checked || inputElement.dataset.oldValue !== inputElement.value) {btnElement.classList.remove("fn__none");@@ -203,7 +197,6 @@ export const toggleUpdateRelationBtn = (menuItemsElement: HTMLElement, avId: strbtnElement.classList.add("fn__none");}} else if (searchElement.dataset.avId) {- switchItemElement.classList.remove("fn__none");if (switchElement.checked) {inputItemElement.classList.remove("fn__none");} else {@@ -361,7 +354,7 @@ export const setRelationCell = (protyle: IProtyle, nodeElement: HTMLElement, tarif (!nodeElement.contains(cellElements[0])) {cellElements[0] = nodeElement.querySelector(`.av__row[data-id="${rowElement.dataset.id}"] .av__cell[data-col-id="${cellElements[0].dataset.colId}"]`) as HTMLElement;}- const newValue:IAVCellRelationValue = {blockIDs: [], contents: []};+ const newValue: IAVCellRelationValue = {blockIDs: [], contents: []};menuElement.querySelectorAll('[draggable="true"]').forEach(item => {const id = item.getAttribute("data-id");newValue.blockIDs.push(id);