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/17556

Vanessa0312bb709093
diff --git a/app/src/dialog/index.ts b/app/src/dialog/index.ts
index 82d8dbcbe6..c8c9c6aa7b 100644
--- a/app/src/dialog/index.ts
+++ b/app/src/dialog/index.ts
@@ -90,8 +90,8 @@ left:${left || "auto"};top:${top || "auto"}">
public resize() {
if (this.resizeCallback) {
const containerElement = this.element.querySelector(".b3-dialog__container") as HTMLElement;
- if (containerElement && (!containerElement.style.height.endsWith("px") || containerElement.style.width.endsWith("px"))) {
- this.resizeCallback("rd");
+ if (containerElement && containerElement.style.maxWidth !== "none") {
+ this.resizeCallback("l");
}
}
}