Skip to content

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

:bug: https://github.com/siyuan-note/siyuan/issues/17709

Vanessa4109dcf1e166
diff --git a/app/src/layout/dock/Files.ts b/app/src/layout/dock/Files.ts
index 4758f35164..f2d0a447e1 100644
--- a/app/src/layout/dock/Files.ts
+++ b/app/src/layout/dock/Files.ts
@@ -585,22 +585,17 @@ export class Files extends Model {
) {
const nodeRect = liElement.getBoundingClientRect();
const dragHeight = nodeRect.height * .2;
+ liElement.classList.remove("dragover__top", "dragover__bottom", "dragover");
if (targetType === "navigation-root" && dragOverLastObj.sourceOnlyRoot) {
if (event.clientY > nodeRect.top + nodeRect.height / 2) {
- liElement.classList.remove("dragover");
liElement.classList.add("dragover__bottom");
} else {
- liElement.classList.remove("dragover");
liElement.classList.add("dragover__top");
}
} else if (event.clientY > nodeRect.bottom - dragHeight) {
- liElement.classList.remove("dragover");
liElement.classList.add("dragover__bottom");
} else if (event.clientY < nodeRect.top + dragHeight) {
- liElement.classList.remove("dragover");
liElement.classList.add("dragover__top");
- } else {
- liElement.classList.remove("dragover__top", "dragover__bottom");
}
}
if (liElement.classList.contains("dragover__top") || liElement.classList.contains("dragover__bottom") ||