mirror of https://github.com/zulip/zulip.git
navbar_alerts: Adjust height of recent topics when alert is visible.
Fixes #21619 We need to adjust height of recent topics along with the app otherwise the container becomes separately scrollable due to it overflowing the app height.
This commit is contained in:
parent
2e50ead9d1
commit
2df4ace441
|
@ -23,6 +23,7 @@ import * as util from "./util";
|
|||
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)");
|
||||
|
||||
// the floating recipient bar is usually positioned right below
|
||||
// the `.header` element (including padding).
|
||||
|
|
Loading…
Reference in New Issue