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.

tippy: Use delay on all compose and message feed tooltips.

PALASH BADERIA85029d604a30
diff --git a/web/src/tippyjs.js b/web/src/tippyjs.js
index a9a9e82f2dc..cbf4a1ef46b 100644
--- a/web/src/tippyjs.js
+++ b/web/src/tippyjs.js
@@ -277,6 +277,7 @@ export function initialize() {
"#compose_top_right [data-tippy-content]",
"#compose_top_right [data-tooltip-template-id]",
],
+ delay: LONG_HOVER_DELAY,
appendTo: () => document.body,
onHidden(instance) {
instance.destroy();
@@ -319,6 +320,7 @@ export function initialize() {
delegate("body", {
target: [".enter_sends_true", ".enter_sends_false"],
+ delay: LONG_HOVER_DELAY,
content: $t({defaultMessage: "Change send shortcut"}),
onShow() {
// Don't show tooltip if the popover is displayed.