mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 00:20:12 +01:00
💄 Improve the animation for opening dialog (#15383)
fix https://github.com/siyuan-note/siyuan/issues/15085
This commit is contained in:
parent
2a07997ba2
commit
9e7426a6f4
2 changed files with 2 additions and 1 deletions
|
|
@ -225,6 +225,7 @@ export abstract class Constants {
|
|||
public static readonly DIALOG_SAVEWORKSPACE = "dialog-saveworkspace"; // 保存工作空间
|
||||
|
||||
// timeout
|
||||
public static readonly TIMEOUT_OPENDIALOG = 50;
|
||||
public static readonly TIMEOUT_DBLCLICK = 190;
|
||||
public static readonly TIMEOUT_INPUT = 256;
|
||||
public static readonly TIMEOUT_LOAD = 300;
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ left:${left || "auto"};top:${top || "auto"}">
|
|||
} else {
|
||||
setTimeout(() => {
|
||||
this.element.classList.add("b3-dialog--open");
|
||||
});
|
||||
}, Constants.TIMEOUT_OPENDIALOG);
|
||||
}
|
||||
/// #if !MOBILE
|
||||
moveResize(this.element.querySelector(".b3-dialog__container"), options.resizeCallback);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue