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:
Aman Agrawal 2022-03-31 02:46:02 +00:00 committed by Tim Abbott
parent 2e50ead9d1
commit 2df4ace441
1 changed files with 1 additions and 0 deletions

View File

@ -23,6 +23,7 @@ import * as util from "./util";
export function resize_app() { export function resize_app() {
const navbar_alerts_wrapper_height = $("#navbar_alerts_wrapper").height(); const navbar_alerts_wrapper_height = $("#navbar_alerts_wrapper").height();
$("body > .app").height("calc(100% - " + navbar_alerts_wrapper_height + "px)"); $("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 floating recipient bar is usually positioned right below
// the `.header` element (including padding). // the `.header` element (including padding).