From 45f10bf62aa402f9a8e2bb8b297d42ebcc19f3ad Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 2 Jul 2025 16:26:12 +0800 Subject: [PATCH] :art: drag gallery --- app/src/protyle/util/editorCommonEvent.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/protyle/util/editorCommonEvent.ts b/app/src/protyle/util/editorCommonEvent.ts index 0edfd8812..fbc3eee7d 100644 --- a/app/src/protyle/util/editorCommonEvent.ts +++ b/app/src/protyle/util/editorCommonEvent.ts @@ -859,7 +859,7 @@ export const dropEvent = (protyle: IProtyle, editorElement: HTMLElement) => { cloneItem.querySelector(".av__gallery-fields").setAttribute("style", "background-color: var(--b3-theme-background)"); ghostElement.append(cloneItem); }); - ghostElement.setAttribute("style", "position:fixed;opacity:.1;padding:0;z-index:1;"); + ghostElement.setAttribute("style", "position:fixed;opacity:.1;padding:0;"); document.body.append(ghostElement); event.dataTransfer.setDragImage(ghostElement, -10, -10); setTimeout(() => {