mirror of
https://github.com/discourse/discourse.git
synced 2025-06-27 14:05:44 +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;
|
outline: none;
|
||||||
border: 0;
|
border: 0;
|
||||||
resize: none;
|
resize: none;
|
||||||
max-height: calc(
|
max-height: calc(var(--100dvh) / 4);
|
||||||
(
|
|
||||||
var(--100dvh) - var(--main-outlet-offset, 0px) -
|
|
||||||
var(--chat-header-offset, 0px)
|
|
||||||
) / 100 * 25
|
|
||||||
);
|
|
||||||
background: none;
|
background: none;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 5px 0;
|
margin: 5px 0;
|
||||||
|
Reference in New Issue
Block a user