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).
This commit is contained in:
Penar Musaraj
2024-11-19 12:18:05 -05:00
committed by GitHub
parent f81bf31993
commit 7776773a11

View File

@ -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;