From 4518752f29aa7743c02d65845d540b288a74d766 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Thu, 6 Nov 2025 13:56:25 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/8873 --- app/src/protyle/util/editorCommonEvent.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/protyle/util/editorCommonEvent.ts b/app/src/protyle/util/editorCommonEvent.ts index b03e67934..db351ffee 100644 --- a/app/src/protyle/util/editorCommonEvent.ts +++ b/app/src/protyle/util/editorCommonEvent.ts @@ -816,9 +816,9 @@ export const dropEvent = (protyle: IProtyle, editorElement: HTMLElement) => { const blockElement = hasClosestBlock(targetElement); if (blockElement) { let previousID = ""; - if (targetClass.includes("dragover__right") || targetElement.classList.contains("dragover__bottom")) { + if (targetClass.includes("dragover__right") || targetClass.includes("dragover__bottom")) { previousID = targetElement.getAttribute("data-id") || ""; - } else if (targetElement.classList.contains("dragover__top") || targetElement.classList.contains("dragover__left")) { + } else if (targetClass.includes("dragover__top") || targetClass.includes("dragover__left")) { previousID = targetElement.previousElementSibling?.getAttribute("data-id") || ""; } const avID = blockElement.getAttribute("data-av-id"); @@ -1372,7 +1372,7 @@ export const dropEvent = (protyle: IProtyle, editorElement: HTMLElement) => { } if (targetElement.classList.contains("av__gallery-add")) { if (hasClosestByClassName(targetElement, "av__kanban-group")) { - targetElement.classList.add("dragover__bottom"); + targetElement.classList.add("dragover__top"); } else { targetElement.classList.add("dragover__left"); }