Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
left-sidebar: Remove add-streams option out of scrollbar.
Gaurav Pandey7ddf6435a99d
diff --git a/static/js/resize.js b/static/js/resize.jsindex 15a3efa7f58..064cedfe7c0 100644--- a/static/js/resize.js+++ b/static/js/resize.js@@ -40,6 +40,7 @@ function get_new_heights() {const viewport_height = message_viewport.height();const top_navbar_height = $("#top_navbar").safeOuterHeight(true);const invite_user_link_height = $("#invite-user-link").safeOuterHeight(true) || 0;+ const add_streams_link_height = $("#add-stream-link").safeOuterHeight(true) || 0;res.bottom_whitespace_height = viewport_height * 0.4;@@ -51,7 +52,8 @@ 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);+ $("#streams_header").safeOuterHeight(true) -+ add_streams_link_height;// 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/styles/left_sidebar.css b/static/styles/left_sidebar.cssindex 645978e5f3c..17ce10ae660 100644--- a/static/styles/left_sidebar.css+++ b/static/styles/left_sidebar.css@@ -78,7 +78,7 @@ li.show-more-topics {#stream_filters {overflow: visible;- margin-bottom: 10px;+ margin-bottom: 5px;margin-right: 12px;padding: 0;font-weight: normal;@@ -175,7 +175,6 @@ li.show-more-topics {#add-stream-link {text-decoration: none;margin-left: 10px;- margin-bottom: 18px;i {min-width: 19px;text-align: center;diff --git a/templates/zerver/app/left_sidebar.html b/templates/zerver/app/left_sidebar.htmlindex e736c973e4e..b5812b6b7eb 100644--- a/templates/zerver/app/left_sidebar.html+++ b/templates/zerver/app/left_sidebar.html@@ -82,12 +82,12 @@</div><div id="stream-filters-container" class="scrolling_list" data-simplebar><ul id="stream_filters" class="filters"></ul>- {% if show_add_streams %}- <div id="add-stream-link">- <a href="#streams/all"><i class="fa fa-plus-circle" aria-hidden="true"></i>{{ _('Subscribe to more streams') }}</a>- </div>- {% endif %}</div>+ {% if show_add_streams %}+ <div id="add-stream-link">+ <a href="#streams/all"><i class="fa fa-plus-circle" aria-hidden="true"></i>{{ _('Subscribe to more streams') }}</a>+ </div>+ {% endif %}</div></div></div>