From 0312bb709093d79e3f26db22d5a84750fadff7a2 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Tue, 21 Apr 2026 10:43:59 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/17556 --- app/src/dialog/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/dialog/index.ts b/app/src/dialog/index.ts index 82d8dbcbe..c8c9c6aa7 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"); } } }