From 69642e3bac3ccb67320919d4993c18931c0e540a Mon Sep 17 00:00:00 2001 From: Vanessa Date: Tue, 25 Mar 2025 23:55:14 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/14426 --- app/src/layout/dock/Files.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/app/src/layout/dock/Files.ts b/app/src/layout/dock/Files.ts index f6ae9cdfc..217738726 100644 --- a/app/src/layout/dock/Files.ts +++ b/app/src/layout/dock/Files.ts @@ -520,11 +520,10 @@ export class Files extends Model { return; } const notebookSort = notebookElement.getAttribute("data-sortmode"); - if (( - notebookSort === "6" || (window.siyuan.config.fileTree.sort === 6 && notebookSort === "15") - ) && - // 防止文档拖拽到笔记本外 - !(!sourceOnlyRoot && targetType === "navigation-root")) { + if ((sourceOnlyRoot && targetType === "navigation-root" && window.siyuan.config.fileTree.sort === 6) || + (!sourceOnlyRoot && targetType !== "navigation-root" && + (notebookSort === "6" || (window.siyuan.config.fileTree.sort === 6 && notebookSort === "15"))) + ) { const nodeRect = liElement.getBoundingClientRect(); const dragHeight = nodeRect.height * .2; if (targetType === "navigation-root" && sourceOnlyRoot) {