From d4248cf060a8fd536d4063722a9f729c6ac22af1 Mon Sep 17 00:00:00 2001 From: Aman Agrawal Date: Thu, 25 Feb 2021 02:33:53 +0000 Subject: [PATCH] keyboard-icon: Use tippyjs for tooltip. Tippyjs automatically places it to left. --- static/js/ui_init.js | 4 ---- templates/zerver/app/right_sidebar.html | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/static/js/ui_init.js b/static/js/ui_init.js index 3b18031d58..ebb3616ef0 100644 --- a/static/js/ui_init.js +++ b/static/js/ui_init.js @@ -335,10 +335,6 @@ export function initialize_kitchen_sink_stuff() { $('.copy_message[data-toggle="tooltip"]').tooltip(); - // We disable animations here because they can cause the tooltip - // to change shape while fading away in weird way. - $("#keyboard-icon").tooltip({placement: "left", animation: false}); - $("body").on("mouseover", ".message_edit_content", function () { $(this).closest(".message_row").find(".copy_message").show(); }); diff --git a/templates/zerver/app/right_sidebar.html b/templates/zerver/app/right_sidebar.html index 5550b8c136..9598dd9335 100644 --- a/templates/zerver/app/right_sidebar.html +++ b/templates/zerver/app/right_sidebar.html @@ -21,7 +21,7 @@ {{ _('Invite more users') }} {% endif %} - +