Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

buddy_list: Move invite users link to inside scrollable section.

evykassirer9ee489700b7f
diff --git a/web/src/resize.ts b/web/src/resize.ts
index ceb7d30ec52..52ddfabf02b 100644
--- a/web/src/resize.ts
+++ b/web/src/resize.ts
@@ -17,13 +17,6 @@ function get_new_heights(): {
} {
const viewport_height = message_viewport.height();
- // If invite user link is not displayed, `.right-sidebar-shortcuts` is displayed with just
- // margin which we don't want to consider in height calculation of buddy list.
- let right_sidebar_shortcuts_height = 0;
- if ($("#right-sidebar .invite-user-link").css("display") !== "none") {
- right_sidebar_shortcuts_height = $(".right-sidebar-shortcuts").outerHeight(true) ?? 0;
- }
-
let stream_filters_max_height =
viewport_height -
Number.parseInt($("#left-sidebar").css("paddingTop"), 10) -
@@ -41,8 +34,7 @@ function get_new_heights(): {
viewport_height -
Number.parseInt($("#right-sidebar").css("paddingTop"), 10) -
($("#userlist-header").outerHeight(true) ?? 0) -
- ($("#user_search_section:not(.notdisplayed)").outerHeight(true) ?? 0) -
- right_sidebar_shortcuts_height;
+ ($("#user_search_section:not(.notdisplayed)").outerHeight(true) ?? 0);
const buddy_list_wrapper_max_height = Math.max(80, usable_height);
diff --git a/web/templates/right_sidebar.hbs b/web/templates/right_sidebar.hbs
index d4e2b107cd6..c717a5cff54 100644
--- a/web/templates/right_sidebar.hbs
+++ b/web/templates/right_sidebar.hbs
@@ -32,10 +32,10 @@
<ul id="buddy-list-other-users" class="buddy-list-section filters" data-search-results-empty="{{t 'None.' }}"></ul>
</div>
<div id="buddy_list_wrapper_padding"></div>
+ <div class="right-sidebar-shortcuts">
+ <a class="invite-user-link" role="button"><i class="fa fa-user-plus" aria-hidden="true"></i>{{t 'Invite users to organization' }}</a>
+ </div>
</div>
</div>
- <div class="right-sidebar-shortcuts">
- <a class="invite-user-link" role="button"><i class="fa fa-user-plus" aria-hidden="true"></i>{{t 'Invite users to organization' }}</a>
- </div>
</div>
</div>