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/10396
Vanessab569365ae1ff
diff --git a/app/src/card/openCard.ts b/app/src/card/openCard.tsindex bda8f80262..e6e9950918 100644--- a/app/src/card/openCard.ts+++ b/app/src/card/openCard.ts@@ -496,6 +496,11 @@ export const openCardByData = async (app: App, cardsData: ICardData, cardType: Tif (lastRange) {focusByRange(lastRange);}+ },+ resizeCallback(type: string) {+ if (type !== "d" && type !== "t" && editor) {+ editor.resize();+ }}});(dialog.element.querySelector(".b3-dialog__scrim") as HTMLElement).style.backgroundColor = "var(--b3-theme-background)";@@ -509,6 +514,7 @@ export const openCardByData = async (app: App, cardsData: ICardData, cardType: TcardType,dialog});+ editor.resize();dialog.editors = {card: editor};diff --git a/app/src/card/viewCards.ts b/app/src/card/viewCards.tsindex b72717cb61..a0ff303a2f 100644--- a/app/src/card/viewCards.ts+++ b/app/src/card/viewCards.ts@@ -57,6 +57,11 @@ export const viewCards = (app: App, deckID: string, title: string, deckType: "Trwindow.siyuan.mobile.popEditor = null;}}+ },+ resizeCallback(type: string) {+ if (type !== "d" && type !== "t" && edit) {+ edit.resize();+ }}});if (response.data.blocks.length > 0) {@@ -73,6 +78,7 @@ export const viewCards = (app: App, deckID: string, title: string, deckType: "Trdialog.editors = {card: edit};+ edit.resize();getArticle(edit, dialog.element.querySelector(".b3-list-item--focus")?.getAttribute("data-id"));}const previousElement = dialog.element.querySelector('[data-type="previous"]');diff --git a/app/src/search/util.ts b/app/src/search/util.tsindex a5430654c2..a450011fd8 100644--- a/app/src/search/util.ts+++ b/app/src/search/util.ts@@ -407,6 +407,7 @@ export const genSearch = (app: App, config: ISearchOption, element: Element, clobreadcrumbDocName: true},});+ edit.resize();const unRefEdit = new Protyle(app, element.querySelector("#searchUnRefPreview") as HTMLElement, {blockId: "",render: {@@ -414,6 +415,7 @@ export const genSearch = (app: App, config: ISearchOption, element: Element, clobreadcrumbDocName: true},});+ unRefEdit.resize();if (closeCB) {if (data.layout === 1) {if (data.col) {