An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: https://github.com/siyuan-note/siyuan/issues/16107
Vanessae2b7d20f0d06
diff --git a/app/src/card/newCardTab.ts b/app/src/card/newCardTab.tsindex 4c87f3b291..ab65c51d6a 100644--- a/app/src/card/newCardTab.ts+++ b/app/src/card/newCardTab.ts@@ -6,7 +6,6 @@ import {Protyle} from "../protyle";import {setPanelFocus} from "../layout/util";import {App} from "../index";import {clearOBG} from "../layout/dock/util";-import {setPadding} from "../protyle/ui/initUI";export const newCardModel = (options: {app: App,@@ -48,6 +47,7 @@ export const newCardModel = (options: {index: options.data.index,});customObj.editors.push(editor);+ editor.resize();// https://github.com/siyuan-note/siyuan/issues/9561#issuecomment-1794473512delete options.data.cardsData;delete options.data.index;@@ -77,6 +77,7 @@ export const newCardModel = (options: {cardType: this.data.cardType,cardsData,});+ editor.resize();customObj.editors.push(editor);});}@@ -120,7 +121,7 @@ export const newCardModel = (options: {cardsData,});customObj.editors.push(editor);- setPadding(editor.protyle);+ editor.resize();});}});