Skip to content

A platform for community discussion. Free, open, simple.

FIX: Simplify max-height calculation for chat composer (#29822)

Penar Musaraj7776773a1186
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;