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/15765
Vanessac08dffd0a768
diff --git a/app/src/assets/scss/component/_typography.scss b/app/src/assets/scss/component/_typography.scssindex 303b57e810..35925265fa 100644--- a/app/src/assets/scss/component/_typography.scss+++ b/app/src/assets/scss/component/_typography.scss@@ -345,10 +345,11 @@[data-subtype="echarts"],[data-subtype="mindmap"] {z-index: 1;+ height: 420px;+ box-sizing: border-box;& > div:not(.protyle-icons):not(.protyle-attr) {overflow: hidden;- height: 420px;}}diff --git a/app/src/protyle/gutter/index.ts b/app/src/protyle/gutter/index.tsindex abc279dd5f..65c244d494 100644--- a/app/src/protyle/gutter/index.ts+++ b/app/src/protyle/gutter/index.ts@@ -1500,13 +1500,16 @@ export class Gutter {element.querySelector("input").addEventListener("change", (event) => {const newHeight = ((event.target as HTMLInputElement).value || "420") + "px";(nodeElement as HTMLElement).style.height = newHeight;- (nodeElement.firstElementChild.nextElementSibling as HTMLElement).style.height = newHeight;updateTransaction(protyle, id, nodeElement.outerHTML, html);html = nodeElement.outerHTML;event.stopPropagation();- const chartInstance = window.echarts.getInstanceById(nodeElement.firstElementChild.nextElementSibling.getAttribute("_echarts_instance_"));- if (chartInstance) {- chartInstance.resize();+ const renderElement = nodeElement.querySelector('[contenteditable="false"]') as HTMLElement;+ if (renderElement) {+ renderElement.style.height = newHeight;+ const chartInstance = window.echarts.getInstanceById(renderElement.getAttribute("_echarts_instance_"));+ if (chartInstance) {+ chartInstance.resize();+ }}});}diff --git a/app/src/protyle/render/chartRender.ts b/app/src/protyle/render/chartRender.tsindex 83c8e0cb58..fcc4fd0e34 100644--- a/app/src/protyle/render/chartRender.ts+++ b/app/src/protyle/render/chartRender.ts@@ -37,7 +37,7 @@ export const chartRender = (element: Element, cdn = Constants.PROTYLE_CDN) => {}try {if (!renderElement.lastElementChild || renderElement.childElementCount === 1) {- renderElement.innerHTML = `<span style="position: absolute;left:0;top:0;width: 1px;">${Constants.ZWSP}</span><div style="height:420px" contenteditable="false"></div>`;+ renderElement.innerHTML = `<span style="position: absolute;left:0;top:0;width: 1px;">${Constants.ZWSP}</span><div style="height:${e.style.height || "420px"}" contenteditable="false"></div>`;}const chartInstance = window.echarts.getInstanceById(renderElement.lastElementChild?.getAttribute("_echarts_instance_"));const option = await looseJsonParse(Lute.UnEscapeHTMLStr(e.getAttribute("data-content")));diff --git a/app/src/protyle/render/mindmapRender.ts b/app/src/protyle/render/mindmapRender.tsindex 242aab6790..df0186589c 100644--- a/app/src/protyle/render/mindmapRender.ts+++ b/app/src/protyle/render/mindmapRender.ts@@ -34,7 +34,7 @@ export const mindmapRender = (element: Element, cdn = Constants.PROTYLE_CDN) =>}try {if (!renderElement.lastElementChild || renderElement.childElementCount === 1) {- renderElement.innerHTML = `<span style="position: absolute;left:0;top:0;width: 1px;">${Constants.ZWSP}</span><div style="height:420px" contenteditable="false"></div>`;+ renderElement.innerHTML = `<span style="position: absolute;left:0;top:0;width: 1px;">${Constants.ZWSP}</span><div style="height:${e.style.height || "420px"}" contenteditable="false"></div>`;}window.echarts.init(renderElement.lastElementChild, window.siyuan.config.appearance.mode === 1 ? "dark" : undefined, {width,