From 7776773a1186e305a55cb0e8b68ec3f1b55b8f6a Mon Sep 17 00:00:00 2001 From: Penar Musaraj Date: Tue, 19 Nov 2024 12:18:05 -0500 Subject: [PATCH] FIX: Simplify max-height calculation for chat composer (#29822) In some rare cases, this was causing the input to be invisible. The change here means the input will have a smaller max height, but since here we are limiting this to 25% of the viewport height, it should be more than fine. It's also not necessary to include the `chat-header-offset`, it ends up being only a few pixels' difference (since, again, it is divided by 4). --- plugins/chat/assets/stylesheets/common/chat-composer.scss | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/plugins/chat/assets/stylesheets/common/chat-composer.scss b/plugins/chat/assets/stylesheets/common/chat-composer.scss index 7994c48161f..bf4dd3485bb 100644 --- a/plugins/chat/assets/stylesheets/common/chat-composer.scss +++ b/plugins/chat/assets/stylesheets/common/chat-composer.scss @@ -85,12 +85,7 @@ outline: none; border: 0; resize: none; - max-height: calc( - ( - var(--100dvh) - var(--main-outlet-offset, 0px) - - var(--chat-header-offset, 0px) - ) / 100 * 25 - ); + max-height: calc(var(--100dvh) / 4); background: none; padding: 0; margin: 5px 0;