tooltips: Use TippyJS instead of HTML title in recipient bars.

Additional changes are added in `tippyjs.js` to ensure
that the tooltip doesn't hide behind the message
box or it is not limited by the parent container, in
case of recipient bar icons.
This commit is contained in:
akshatdalton
2021-06-26 18:21:25 +00:00
committed by Tim Abbott
parent 2aec7b1644
commit 505502a993
2 changed files with 13 additions and 4 deletions

View File

@@ -176,4 +176,13 @@ export function initialize() {
instance.destroy();
},
});
// In case of recipient bar icons, following change
// 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",
placement: "top",
appendTo: () => document.body,
});
}