message_list_tooltips: Consistently pass 'target' as 'string' argument.

This commit is contained in:
Varun Singh 2024-03-18 22:18:02 +05:30 committed by Tim Abbott
parent 92c8b89ce2
commit 92ba149f5f
1 changed files with 8 additions and 6 deletions

View File

@ -266,19 +266,21 @@ export function initialize() {
}, },
}); });
message_list_tooltip([".recipient_bar_icon"], { message_list_tooltip(".recipient_bar_icon", {
delay: LONG_HOVER_DELAY, delay: LONG_HOVER_DELAY,
onHidden(instance) { onHidden(instance) {
instance.destroy(); instance.destroy();
}, },
}); });
message_list_tooltip([".rendered_markdown time", ".rendered_markdown .copy_codeblock"], { message_list_tooltip(".rendered_markdown time, .rendered_markdown .copy_codeblock",
{
content: timerender.get_markdown_time_tooltip, content: timerender.get_markdown_time_tooltip,
onHidden(instance) { onHidden(instance) {
instance.destroy(); instance.destroy();
}, },
}); },
);
message_list_tooltip(".message_inline_image > a > img", { message_list_tooltip(".message_inline_image > a > img", {
// Add a short delay so the user can mouseover several inline images without // Add a short delay so the user can mouseover several inline images without