🎨 Clean code

Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2026-01-13 21:05:49 +08:00
parent c7a177e79e
commit 68f939d33d
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
3 changed files with 1 additions and 2 deletions

View file

@ -27,7 +27,6 @@ import {newDailyNote} from "../../util/mount";
import {hideElements} from "../../protyle/ui/hideElements";
import {fetchPost} from "../../util/fetch";
import {goBack, goForward} from "../../util/backForward";
import {onGet} from "../../protyle/util/onGet";
import {getDisplayName, getNotebookName} from "../../util/pathName";
import {openFileById} from "../../editor/util";
import {getAllDocks, getAllModels, getAllTabs} from "../../layout/getAll";

View file

@ -586,6 +586,7 @@ export class Files extends Model {
}
if (liElement.classList.contains("dragover__top") || liElement.classList.contains("dragover__bottom") ||
(targetType === "navigation-root" && dragOverLastObj.sourceOnlyRoot)) {
// do nothing
} else {
liElement.classList.add("dragover");
}

View file

@ -14,7 +14,6 @@ import {
copyPlainText,
isInAndroid,
isInHarmony,
isInIOS,
isMac,
isOnlyMeta,
openByMobile,