From 349c45d1373d19e4fe3e2c7cafee32024844e3ee Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sat, 15 Oct 2022 14:23:40 +0800 Subject: [PATCH] :bug: fix https://github.com/siyuan-note/siyuan/issues/6199 --- app/src/protyle/wysiwyg/transaction.ts | 2 +- app/src/util/onGetConfig.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/protyle/wysiwyg/transaction.ts b/app/src/protyle/wysiwyg/transaction.ts index a60d4d99a..248bce64c 100644 --- a/app/src/protyle/wysiwyg/transaction.ts +++ b/app/src/protyle/wysiwyg/transaction.ts @@ -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[] = []; diff --git a/app/src/util/onGetConfig.ts b/app/src/util/onGetConfig.ts index b33c5dd31..f58f6fa09 100644 --- a/app/src/util/onGetConfig.ts +++ b/app/src/util/onGetConfig.ts @@ -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;