Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
left-sidebar: Make subscription link non-sticky.
jai22012281adc101c3
diff --git a/static/js/resize.js b/static/js/resize.jsindex 4aac25b2513..ad57004f9a3 100644--- a/static/js/resize.js+++ b/static/js/resize.js@@ -43,7 +43,6 @@ function get_new_heights() {const viewport_height = message_viewport.height();const top_navbar_height = $("#top_navbar").safeOuterHeight(true);const right_sidebar_shorcuts_height = $(".right-sidebar-shortcuts").safeOuterHeight(true) || 0;- const add_streams_link_height = $("#add-stream-link").safeOuterHeight(true) || 0;res.bottom_whitespace_height = viewport_height * 0.4;@@ -55,8 +54,7 @@ function get_new_heights() {Number.parseInt($(".narrows_panel").css("marginTop"), 10) -Number.parseInt($(".narrows_panel").css("marginBottom"), 10) -$("#global_filters").safeOuterHeight(true) -- $("#streams_header").safeOuterHeight(true) -- add_streams_link_height;+ $("#streams_header").safeOuterHeight(true);// Don't let us crush the stream sidebar completely out of viewres.stream_filters_max_height = Math.max(80, res.stream_filters_max_height);diff --git a/static/templates/left_sidebar.hbs b/static/templates/left_sidebar.hbsindex 5db752463c7..566902ae024 100644--- a/static/templates/left_sidebar.hbs+++ b/static/templates/left_sidebar.hbs@@ -87,12 +87,12 @@</div><div id="stream-filters-container" class="scrolling_list" data-simplebar><ul id="stream_filters" class="filters"></ul>+ {{#unless is_guest }}+ <div id="add-stream-link">+ <a href="#streams/all"><i class="fa fa-plus-circle" aria-hidden="true"></i>{{t 'Subscribe to more streams' }}</a>+ </div>+ {{/unless}}</div>- {{#unless is_guest }}- <div id="add-stream-link">- <a href="#streams/all"><i class="fa fa-plus-circle" aria-hidden="true"></i>{{t 'Subscribe to more streams' }}</a>- </div>- {{/unless}}</div></div></div>