css: Use a variable to track bottom_whitespace height.

Since we want the same space in recent topics to display the
compose box without overlapping with any other topics, it makes
sense to use a common variable.
This commit is contained in:
Aman Agrawal
2023-05-31 00:01:39 +05:30
committed by Tim Abbott
parent 839af9ed8d
commit 086db7621c
3 changed files with 11 additions and 3 deletions

View File

@@ -120,7 +120,7 @@ export function reset_compose_message_max_height(bottom_whitespace_height) {
export function resize_bottom_whitespace() {
const bottom_whitespace_height = get_bottom_whitespace_height();
$("#bottom_whitespace").height(bottom_whitespace_height);
$("html").css("--max-unexpanded-compose-height", `${bottom_whitespace_height}px`);
// The height of the compose box is tied to that of
// bottom_whitespace, so update it if necessary.
//