mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-03 15:28:49 +01:00
🎨 drag gallery
This commit is contained in:
parent
deaf5ef59b
commit
45f10bf62a
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)");
|
||||
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(() => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue