Skip to content

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

:art: fix https://github.com/siyuan-note/siyuan/issues/5454

Vanessa8f8f2b610084
diff --git a/app/src/protyle/gutter/index.ts b/app/src/protyle/gutter/index.ts
index f825ce8fec..a945189c71 100644
--- a/app/src/protyle/gutter/index.ts
+++ b/app/src/protyle/gutter/index.ts
@@ -974,10 +974,14 @@ 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 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 = echarts.getInstanceById(nodeElement.firstElementChild.nextElementSibling.getAttribute("_echarts_instance_"));
+ if (chartInstance) {
+ chartInstance.resize();
+ }
});
}
}, {