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

Vanessad10373f142e4
diff --git a/app/src/protyle/util/editorCommonEvent.ts b/app/src/protyle/util/editorCommonEvent.ts
index 8ff3fc99c1..45222332c2 100644
--- a/app/src/protyle/util/editorCommonEvent.ts
+++ b/app/src/protyle/util/editorCommonEvent.ts
@@ -1480,7 +1480,9 @@ export const dropEvent = (protyle: IProtyle, editorElement: HTMLElement) => {
return;
}
- if (event.clientX < nodeRect.left + 32 && event.clientX >= nodeRect.left - 1 &&
+ // 减小两个列表之间左侧间距,以便拖拽到其中 https://github.com/siyuan-note/siyuan/issues/15672
+ if (event.clientX < nodeRect.left + (targetElement.classList.contains("list") ? 8 : 32) &&
+ event.clientX >= nodeRect.left - 1 &&
!targetElement.classList.contains("av__row")) {
targetElement.classList.add("dragover__left");
addDragover(targetElement);