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

Vanessacaf64d7c167b
diff --git a/app/src/layout/dock/index.ts b/app/src/layout/dock/index.ts
index 8f3f2461e4..e11baa95bc 100644
--- a/app/src/layout/dock/index.ts
+++ b/app/src/layout/dock/index.ts
@@ -132,10 +132,10 @@ export class Dock {
ghostElement.setAttribute("data-ghost-type", "dock");
this.elements[0].parentElement.append(ghostElement);
ghostElement.setAttribute("id", "dragGhost");
- ghostElement.setAttribute("style", `background-color:var(--b3-theme-background-light);position: fixed; top: ${event.clientY}px; left: ${event.clientX}px; z-index:999997;`);
+ ghostElement.setAttribute("style", `pointer-events: none;background-color:var(--b3-theme-background-light);position: fixed; top: ${event.clientY}px; left: ${event.clientX}px; z-index:999997;`);
}
- ghostElement.style.top = (moveEvent.clientY - 42) + "px";
+ ghostElement.style.top = (moveEvent.clientY - 21) + "px";
ghostElement.style.left = (moveEvent.clientX - 21) + "px";
const targetItem = hasClosestByClassName(moveEvent.target as HTMLElement, "dock__item") ||