Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
left_sidebar: Fix bottom item not visible in left sidebar.
Aman Agrawal25cb87cdc38d
diff --git a/web/src/resize.ts b/web/src/resize.tsindex d3973890185..ac59afd479d 100644--- a/web/src/resize.ts+++ b/web/src/resize.ts@@ -17,14 +17,15 @@ function get_new_heights(): {buddy_list_wrapper_max_height: number;} {const viewport_height = message_viewport.height();+ // Add some gap for bottom element to be properly visible.+ const GAP = 15;let stream_filters_max_height =viewport_height -Number.parseInt($("#left-sidebar").css("paddingTop"), 10) -- Number.parseInt($("#left-sidebar-navigation-area").css("marginTop"), 10) -- Number.parseInt($("#left-sidebar-navigation-area").css("marginBottom"), 10) -- ($("#left-sidebar-navigation-list").outerHeight(true) ?? 0) -- ($("#direct-messages-section-header").outerHeight(true) ?? 0);+ ($("#left-sidebar-navigation-area").outerHeight(true) ?? 0) -+ ($("#direct-messages-section-header").outerHeight(true) ?? 0) -+ GAP;// Don't let us crush the stream sidebar completely out of viewstream_filters_max_height = Math.max(80, stream_filters_max_height);