mirror of
https://github.com/zulip/zulip.git
synced 2025-11-17 12:21:58 +00:00
navbar_alerts: Adjust app based on navbar height.
This commit is contained in:
@@ -23,9 +23,11 @@ import * as util from "./util";
|
||||
/* This is called by resize.js, and thus indirectly when we trigger
|
||||
* resize events in the logic below. */
|
||||
export function resize_app() {
|
||||
const navbar_alerts_wrapper_height = $("#navbar_alerts_wrapper").height();
|
||||
$("body > .app").height("calc(100% - " + navbar_alerts_wrapper_height + "px)");
|
||||
$(".recent_topics_container").height("calc(100vh - " + navbar_alerts_wrapper_height + "px)");
|
||||
const navbar_alerts_height = $("#navbar_alerts_wrapper").height();
|
||||
document.documentElement.style.setProperty(
|
||||
"--navbar-alerts-wrapper-height",
|
||||
navbar_alerts_height + "px",
|
||||
);
|
||||
|
||||
// If the compose-box is in expanded state,
|
||||
// reset its height as well.
|
||||
|
||||
Reference in New Issue
Block a user