💄 Improve the animation for opening dialog (#15383)

fix https://github.com/siyuan-note/siyuan/issues/15085
This commit is contained in:
Jeffrey Chen 2025-07-30 17:22:40 +08:00 committed by GitHub
parent 2a07997ba2
commit 9e7426a6f4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View file

@ -225,6 +225,7 @@ export abstract class Constants {
public static readonly DIALOG_SAVEWORKSPACE = "dialog-saveworkspace"; // 保存工作空间 public static readonly DIALOG_SAVEWORKSPACE = "dialog-saveworkspace"; // 保存工作空间
// timeout // timeout
public static readonly TIMEOUT_OPENDIALOG = 50;
public static readonly TIMEOUT_DBLCLICK = 190; public static readonly TIMEOUT_DBLCLICK = 190;
public static readonly TIMEOUT_INPUT = 256; public static readonly TIMEOUT_INPUT = 256;
public static readonly TIMEOUT_LOAD = 300; public static readonly TIMEOUT_LOAD = 300;

View file

@ -78,7 +78,7 @@ left:${left || "auto"};top:${top || "auto"}">
} else { } else {
setTimeout(() => { setTimeout(() => {
this.element.classList.add("b3-dialog--open"); this.element.classList.add("b3-dialog--open");
}); }, Constants.TIMEOUT_OPENDIALOG);
} }
/// #if !MOBILE /// #if !MOBILE
moveResize(this.element.querySelector(".b3-dialog__container"), options.resizeCallback); moveResize(this.element.querySelector(".b3-dialog__container"), options.resizeCallback);