From a1479518a2b85a7eefc8d942cd0c0963eca48eac Mon Sep 17 00:00:00 2001 From: Miodec Date: Wed, 16 Nov 2022 12:44:07 +0100 Subject: [PATCH] consistent animation timing --- frontend/src/ts/commandline/index.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/ts/commandline/index.ts b/frontend/src/ts/commandline/index.ts index db6e1f34c..9c6bb99b0 100644 --- a/frontend/src/ts/commandline/index.ts +++ b/frontend/src/ts/commandline/index.ts @@ -185,7 +185,7 @@ export let show = (): void => { { opacity: 1, }, - 100 + 125 ); } $("#commandLine input").val(""); @@ -206,8 +206,9 @@ function hide(shouldFocusTestUI = true): void { { opacity: 0, }, - 100, + 125, () => { + addCommandlineBackground(); $("#commandLineWrapper").addClass("hidden"); $("#commandLine").removeClass("allCommands"); if (shouldFocusTestUI) {