mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 00:20:47 +02:00
This commit is contained in:
parent
68943ed5d5
commit
434e8174fa
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue