Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: fix https://github.com/siyuan-note/siyuan/issues/6199

Vanessa349c45d1373d
diff --git a/app/src/protyle/wysiwyg/transaction.ts b/app/src/protyle/wysiwyg/transaction.ts
index a60d4d99ae..248bce64cd 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 b33c5dd31e..f58f6fa098 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;