Skip to content

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

:art: https://github.com/siyuan-note/siyuan/issues/17032

Vanessaae3657648c64
diff --git a/app/src/protyle/toolbar/index.ts b/app/src/protyle/toolbar/index.ts
index 65176ff066..97d3900f8c 100644
--- a/app/src/protyle/toolbar/index.ts
+++ b/app/src/protyle/toolbar/index.ts
@@ -1182,7 +1182,12 @@ export class Toolbar {
return;
}
});
+ const resizeObserver = new ResizeObserver(() => {
+ renderTextareaLineNumber();
+ });
+ resizeObserver.observe(this.subElement);
this.subElementCloseCB = () => {
+ resizeObserver.disconnect();
const noChange = !renderElement.parentElement || protyle.disabled ||
(textElement.value && oldTextValue === textElement.value);
let inlineLastNode: Element;