mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 18:43:27 +08:00
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:
@ -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;
|
||||
|
Reference in New Issue
Block a user