Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
tooltips: Add new tippy configuration `.tippy-zulip-delayed-tooltip`.
Hardik Dharmani7785fb2948ce
diff --git a/web/src/tippyjs.js b/web/src/tippyjs.jsindex 1a85f9fb57c..f83bdc08371 100644--- a/web/src/tippyjs.js+++ b/web/src/tippyjs.js@@ -116,6 +116,27 @@ export function initialize() {target: ".tippy-zulip-tooltip",});+ // variant of tippy-zulip-tooltip above having delay=LONG_HOVER_DELAY,+ // default placement="top" with fallback placement="bottom",+ // and appended to body+ delegate("body", {+ target: ".tippy-zulip-delayed-tooltip",+ // Disable trigger on focus, to avoid displaying on-click.+ trigger: "mouseenter",+ delay: LONG_HOVER_DELAY,+ appendTo: () => document.body,+ popperOptions: {+ modifiers: [+ {+ name: "flip",+ options: {+ fallbackPlacements: "bottom",+ },+ },+ ],+ },+ });+delegate("body", {target: ".tippy-left-sidebar-tooltip",placement: "right",