Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:children_crossing: fix https://github.com/siyuan-note/siyuan/issues/5282

Vanessa6790c990ba24
diff --git a/app/src/layout/dock/Files.ts b/app/src/layout/dock/Files.ts
index 4be42750e6..61cac2e730 100644
--- a/app/src/layout/dock/Files.ts
+++ b/app/src/layout/dock/Files.ts
@@ -307,12 +307,15 @@ export class Files extends Model {
}
liElement.classList.remove("dragover__top", "dragover__bottom", "dragover");
const sourceType = window.siyuan.dragElement.getAttribute("data-type");
- if (["NodeListItem", "NodeHeading"].includes(sourceType)) {
- // 编辑器情景菜单拖拽
- liElement.classList.add("dragover");
+ if (window.siyuan.dragElement.parentElement?.classList.contains("protyle-gutters")) {
+ if (["NodeListItem", "NodeHeading"].includes(sourceType)) {
+ // 编辑器情景菜单拖拽
+ liElement.classList.add("dragover");
+ }
event.preventDefault();
return;
}
+
const targetType = liElement.getAttribute("data-type");
if (sourceType === "navigation-root" && targetType !== "navigation-root") {
event.preventDefault();