From edcb0ae8730a1d516f746ba5143314501ec368cb Mon Sep 17 00:00:00 2001 From: Eduard Kuzmenko Date: Wed, 9 Mar 2022 23:05:16 +0200 Subject: [PATCH] Fix hiding bot commands with disabled animations --- src/components/chat/input.ts | 2 +- src/scss/partials/_chatBotCommands.scss | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/chat/input.ts b/src/components/chat/input.ts index 8350d668..d88754fe 100644 --- a/src/components/chat/input.ts +++ b/src/components/chat/input.ts @@ -226,7 +226,7 @@ export default class ChatInput { private botCommandsToggle: HTMLElement; private botCommands: ChatBotCommands; private botCommandsIcon: HTMLDivElement; - hasBotCommands: number; + private hasBotCommands: number; // private activeContainer: HTMLElement; diff --git a/src/scss/partials/_chatBotCommands.scss b/src/scss/partials/_chatBotCommands.scss index e93a8f2c..c258c527 100644 --- a/src/scss/partials/_chatBotCommands.scss +++ b/src/scss/partials/_chatBotCommands.scss @@ -24,7 +24,10 @@ animation: none !important; visibility: visible !important; transition: none !important; - display: flex !important; + + @include animation-level(2) { + display: flex !important; + } .scrollable { background-color: var(--surface-color);