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", action: "insert",
id, id,
data: parentElement.outerHTML, data: parentElement.outerHTML,
previousID: previousId, nextID: previousId,
parentID: parentId parentID: parentId
}]; }];
const undoOperations: IOperation[] = []; const undoOperations: IOperation[] = [];

View file

@ -221,7 +221,7 @@ const initBar = () => {
setMode(2); setMode(2);
} }
}).element); }).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(); event.stopPropagation();
break; break;
} else if (target.id === "barHistory") { } else if (target.id === "barHistory") {
@ -259,7 +259,7 @@ const initBar = () => {
}).element); }).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(); event.stopPropagation();
break; break;