This commit is contained in:
Vanessa 2022-10-15 14:23:40 +08:00
parent fa17e26174
commit 349c45d137
2 changed files with 3 additions and 3 deletions

View file

@ -626,7 +626,7 @@ export const turnsIntoOneTransaction = (options: { protyle: IProtyle, selectsEle
action: "insert",
id,
data: parentElement.outerHTML,
previousID: previousId,
nextID: previousId,
parentID: parentId
}];
const undoOperations: IOperation[] = [];

View file

@ -221,7 +221,7 @@ const initBar = () => {
setMode(2);
}
}).element);
window.siyuan.menus.menu.popup({x: event.clientX, y: event.clientY + 8});
window.siyuan.menus.menu.popup({x: event.clientX, y: event.clientY + 18});
event.stopPropagation();
break;
} else if (target.id === "barHistory") {
@ -259,7 +259,7 @@ const initBar = () => {
}).element);
}
});
window.siyuan.menus.menu.popup({x: event.clientX, y: event.clientY});
window.siyuan.menus.menu.popup({x: event.clientX, y: event.clientY + 18});
}
event.stopPropagation();
break;