mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 09:30:14 +01:00
This commit is contained in:
parent
5a69b30883
commit
69642e3bac
1 changed files with 4 additions and 5 deletions
|
|
@ -520,11 +520,10 @@ export class Files extends Model {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const notebookSort = notebookElement.getAttribute("data-sortmode");
|
const notebookSort = notebookElement.getAttribute("data-sortmode");
|
||||||
if ((
|
if ((sourceOnlyRoot && targetType === "navigation-root" && window.siyuan.config.fileTree.sort === 6) ||
|
||||||
notebookSort === "6" || (window.siyuan.config.fileTree.sort === 6 && notebookSort === "15")
|
(!sourceOnlyRoot && targetType !== "navigation-root" &&
|
||||||
) &&
|
(notebookSort === "6" || (window.siyuan.config.fileTree.sort === 6 && notebookSort === "15")))
|
||||||
// 防止文档拖拽到笔记本外
|
) {
|
||||||
!(!sourceOnlyRoot && targetType === "navigation-root")) {
|
|
||||||
const nodeRect = liElement.getBoundingClientRect();
|
const nodeRect = liElement.getBoundingClientRect();
|
||||||
const dragHeight = nodeRect.height * .2;
|
const dragHeight = nodeRect.height * .2;
|
||||||
if (targetType === "navigation-root" && sourceOnlyRoot) {
|
if (targetType === "navigation-root" && sourceOnlyRoot) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue