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/10964
Vanessaf91e87b95382
diff --git a/app/src/protyle/render/av/groups.ts b/app/src/protyle/render/av/groups.tsindex f144affa36..6c69f386d1 100644--- a/app/src/protyle/render/av/groups.ts+++ b/app/src/protyle/render/av/groups.ts@@ -5,7 +5,6 @@ import {setPosition} from "../../../util/setPosition";import {getFieldsByData} from "./view";import {fetchSyncPost} from "../../../util/fetch";import {Menu} from "../../../plugin/Menu";-import {transaction} from "../../wysiwyg/transaction";import {objEquals} from "../../../util/functions";export const setGroupMethod = async (options: {diff --git a/app/src/protyle/util/editorCommonEvent.ts b/app/src/protyle/util/editorCommonEvent.tsindex 385c1bf0dd..0858a7f8d2 100644--- a/app/src/protyle/util/editorCommonEvent.ts+++ b/app/src/protyle/util/editorCommonEvent.ts@@ -870,14 +870,24 @@ export const dropEvent = (protyle: IProtyle, editorElement: HTMLElement) => {}target.classList.add("av__gallery-item--select");const ghostElement = document.createElement("div");- ghostElement.className = "protyle-wysiwyg protyle-wysiwyg--attr " + target.parentElement.className;- blockElement.querySelectorAll(".av__gallery-item--select").forEach(item => {+ ghostElement.className = "protyle-wysiwyg protyle-wysiwyg--attr";+ const selectElements = blockElement.querySelectorAll(".av__gallery-item--select");+ let galleryElement: HTMLElement;+ let cloneGalleryElement = document.createElement("div");+ selectElements.forEach(item => {+ if (!galleryElement || !galleryElement.contains(item)) {+ galleryElement = item.parentElement;+ cloneGalleryElement = document.createElement("div");+ cloneGalleryElement.classList.add("av__gallery");+ cloneGalleryElement.setAttribute("style", `width: 100vw;margin-bottom: 16px;grid-template-columns: repeat(auto-fill, ${selectElements[0].clientWidth}px);`);+ ghostElement.appendChild(cloneGalleryElement);+ }const cloneItem = processClonePHElement(item.cloneNode(true) as Element);- cloneItem.setAttribute("style", `width:${item.clientWidth}px;;height:${item.clientHeight}px;`);+ cloneItem.setAttribute("style", `height:${item.clientHeight}px;`);cloneItem.querySelector(".av__gallery-fields").setAttribute("style", "background-color: var(--b3-theme-background)");- ghostElement.append(cloneItem);+ cloneGalleryElement.appendChild(cloneItem);});- ghostElement.setAttribute("style", "top:100vh;position:fixed;opacity:.1;padding:0");+ ghostElement.setAttribute("style", "top:100vh;position:fixed;opacity:.1;padding:0;z-index: 8");document.body.append(ghostElement);event.dataTransfer.setDragImage(ghostElement, -10, -10);setTimeout(() => {