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.

tooltip: Improve tooltip placement for User sidebar title.

akshatdaltond693b77f49ec
diff --git a/static/js/tippyjs.js b/static/js/tippyjs.js
index 937b9c6aa2d..b9a5c8203a8 100644
--- a/static/js/tippyjs.js
+++ b/static/js/tippyjs.js
@@ -181,7 +181,7 @@ export function initialize() {
// ensures that tooltip doesn't hide behind the message
// box or it is not limited by the parent container.
delegate("body", {
- target: ".recipient_bar_icon",
+ target: [".recipient_bar_icon", ".sidebar-title"],
placement: "top",
appendTo: () => document.body,
});
diff --git a/static/templates/left_sidebar.hbs b/static/templates/left_sidebar.hbs
index a1a27f57fbe..ee1e328dcf7 100644
--- a/static/templates/left_sidebar.hbs
+++ b/static/templates/left_sidebar.hbs
@@ -59,7 +59,7 @@
</li>
</ul>
<div id="streams_list" class="zoom-out">
- <div id="streams_header" class="zoom-in-hide"><h4 class="sidebar-title tippy-zulip-tooltip" data-tippy-content="{{t 'Filter streams' }} (q)">{{t 'STREAMS' }}</h4>
+ <div id="streams_header" class="zoom-in-hide"><h4 class="sidebar-title" data-tippy-content="{{t 'Filter streams' }} (q)">{{t 'STREAMS' }}</h4>
<span class="tippy-zulip-tooltip streams_inline_cog_wrapper hidden-for-spectators" data-tippy-content="{{t 'Add streams' }}" data-tippy-placement="top">
<i id="streams_inline_cog" class='fa fa-plus' aria-hidden="true" ></i>
</span>
diff --git a/static/templates/right_sidebar.hbs b/static/templates/right_sidebar.hbs
index 6dc6ad071f2..2563178cb31 100644
--- a/static/templates/right_sidebar.hbs
+++ b/static/templates/right_sidebar.hbs
@@ -2,7 +2,7 @@
<div class="right-sidebar-items">
<div id="user-list">
<div id="userlist-header">
- <h4 class='sidebar-title tippy-zulip-tooltip'
+ <h4 class='sidebar-title'
id='userlist-title' data-tippy-content="{{t 'Search people' }} (w)">{{t 'USERS' }}</h4>
<i id="user_filter_icon" class="fa fa-search tippy-zulip-tooltip"
aria-hidden="true" aria-label="{{t 'Search people' }}"