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.

right_sidebar: Remove invite users icon at bottom of buddy list.

evykassirer602d0f4914d0
diff --git a/web/styles/right_sidebar.css b/web/styles/right_sidebar.css
index 0bb908ed66f..e6beee59641 100644
--- a/web/styles/right_sidebar.css
+++ b/web/styles/right_sidebar.css
@@ -605,39 +605,15 @@
margin-bottom: var(--sidebar-bottom-spacing);
.invite-user-link {
- grid-template:
- "left-spacing icon text" /
- calc(var(--right-sidebar-toggle-width-offset) - 2px)
- var(--right-sidebar-presence-circle-width)
- minmax(0, 1fr);
-
- .zulip-icon-user-plus {
- grid-area: icon;
- justify-self: center;
- /* Smaller icon size to align the link text with the other buddy list links */
- font-size: 13px;
- }
-
- .right-sidebar-wrappable-text-inner {
- grid-area: text;
- }
+ /* TODO: We should eventually change the grid to use the correct
+ --right-sidebar-presence-circle-width with left spacing, and
+ share that left spacing value here. */
+ padding-left: calc(var(--right-sidebar-toggle-width-offset) + 0.3em);
}
}
#user-list.with_avatars .invite-user-link {
- /* Subtract 2px to account for the border on this element */
- grid-template:
- "icon middle-spacing text" /
- var(--right-sidebar-header-icon-toggle-width)
- calc(
- var(--right-sidebar-text-indent-with-avatar) - 2px -
- var(--right-sidebar-header-icon-toggle-width)
- )
- minmax(0, 1fr);
-
- .zulip-icon-user-plus {
- margin-left: calc(var(--right-sidebar-header-icon-toggle-width) / 2);
- }
+ padding-left: calc(var(--right-sidebar-header-icon-toggle-width) / 2);
}
#buddy-list-actions-menu-popover {
diff --git a/web/templates/right_sidebar.hbs b/web/templates/right_sidebar.hbs
index 27fee07ebdd..00ff82e2da7 100644
--- a/web/templates/right_sidebar.hbs
+++ b/web/templates/right_sidebar.hbs
@@ -28,7 +28,6 @@
<div id="buddy_list_wrapper_padding"></div>
<div class="invite-user-shortcut">
<a class="invite-user-link right-sidebar-wrappable-text-container" role="button">
- <i class="zulip-icon zulip-icon-user-plus" aria-hidden="true"></i>
<span class="right-sidebar-wrappable-text-inner">
{{t 'Invite to organization' }}
</span>