Skip to content

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

:bug: Update super block resize handles when switching layouts https://github.com/siyuan-note/siyuan/issues/18886

Daniel750b8086860d
diff --git a/app/src/protyle/wysiwyg/transaction.ts b/app/src/protyle/wysiwyg/transaction.ts
index 40f4b475a4..5049955689 100644
--- a/app/src/protyle/wysiwyg/transaction.ts
+++ b/app/src/protyle/wysiwyg/transaction.ts
@@ -2257,6 +2257,9 @@ export const updateTransaction = (protyle: IProtyle, element: Element, oldHTML:
undoOperations: IOperation[],
context?: Record<string, string>,
}) => {
+ if (element.getAttribute("data-type") === "NodeSuperBlock") {
+ refreshSbResize(element);
+ }
const id = element.getAttribute("data-node-id");
const newHTML = cleanHeadingNumberHTML(element.outerHTML);
const cleanOldHTML = cleanHeadingNumberHTML(oldHTML);