mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-15 15:28:37 +08:00
This commit is contained in:
parent
68943ed5d5
commit
434e8174fa
@ -859,7 +859,7 @@ export const dropEvent = (protyle: IProtyle, editorElement: HTMLElement) => {
|
|||||||
cloneItem.querySelector(".av__gallery-fields").setAttribute("style", "background-color: var(--b3-theme-background)");
|
cloneItem.querySelector(".av__gallery-fields").setAttribute("style", "background-color: var(--b3-theme-background)");
|
||||||
ghostElement.append(cloneItem);
|
ghostElement.append(cloneItem);
|
||||||
});
|
});
|
||||||
ghostElement.setAttribute("style", "position:fixed;opacity:.1;padding:0;");
|
ghostElement.setAttribute("style", "top:100vh;position:fixed;opacity:.1;padding:0");
|
||||||
document.body.append(ghostElement);
|
document.body.append(ghostElement);
|
||||||
event.dataTransfer.setDragImage(ghostElement, -10, -10);
|
event.dataTransfer.setDragImage(ghostElement, -10, -10);
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user