mirror of
https://github.com/zulip/zulip.git
synced 2025-11-11 01:16:19 +00:00
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:
@@ -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.
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user