Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
message view: Fix tooltips in message action icons.
m-e-l-u-h-a-nc97956c5ff94
diff --git a/static/js/tippyjs.js b/static/js/tippyjs.jsindex c3c109e1f23..91a229eb7f1 100644--- a/static/js/tippyjs.js+++ b/static/js/tippyjs.js@@ -92,7 +92,16 @@ export function initialize() {const edit_button = elem.find("i.edit_content_button");content = edit_button.attr("data-tippy-content");}+ if (content === undefined) {+ // If content is still undefined it is because content+ // is specified on inner i tags and is handled by our+ // general tippy-zulip-tooltip class. So we return+ // false here to avoid showing an extra empty tooltip+ // for such cases.+ return false;+ }instance.setContent(content);+ return true;},});}diff --git a/static/templates/message_controls.hbs b/static/templates/message_controls.hbsindex 899a5de2a23..69f4d890c43 100644--- a/static/templates/message_controls.hbs+++ b/static/templates/message_controls.hbs@@ -16,8 +16,8 @@{{/unless}}<div class="message_failed message_control_button {{#unless msg.failed_request}}notvisible{{/unless}}">- <i class="fa fa-refresh refresh-failed-message tippy-zulip-tooltip" data-tippy-content="{{t 'Retry' }}" aria-label="{{t 'Retry' }}" role="button" tabindex="0"></i>- <i class="fa fa-times-circle remove-failed-message tippy-zulip-tooltip" data-tippy-content="{{t 'Cancel' }}" aria-label="{{t 'Cancel' }}" role="button" tabindex="0"></i>+ <i class="fa fa-refresh refresh-failed-message tippy-zulip-tooltip" data-tippy-content="{{t 'Retry' }}" data-tippy-placement="top" aria-label="{{t 'Retry' }}" role="button" tabindex="0"></i>+ <i class="fa fa-times-circle remove-failed-message tippy-zulip-tooltip" data-tippy-content="{{t 'Cancel' }}" data-tippy-placement="top" aria-label="{{t 'Cancel' }}" role="button" tabindex="0"></i></div>{{#unless msg/locally_echoed}}