mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
user_card_popover: Add LONG_HOVER_DELAY delay to user card tooltips.
This adds the `LONG_HOVER_DELAY` delay to the user card tooltips, which prevent the tooltips from becoming distracting when the user is just navigating the popover.
This commit is contained in:
@@ -602,9 +602,19 @@ export function initialize(): void {
|
||||
});
|
||||
|
||||
tippy.delegate("body", {
|
||||
target: [".personal-menu-clear-status", ".user-card-clear-status-button"].join(","),
|
||||
target: [
|
||||
".custom-profile-field-value",
|
||||
".copy-custom-profile-field-link",
|
||||
"#popover-menu-copy-email",
|
||||
".personal-menu-clear-status",
|
||||
".user-card-clear-status-button",
|
||||
].join(","),
|
||||
placement: "top",
|
||||
delay: LONG_HOVER_DELAY,
|
||||
appendTo: () => document.body,
|
||||
onHidden(instance: tippy.Instance) {
|
||||
instance.destroy();
|
||||
},
|
||||
});
|
||||
|
||||
tippy.delegate("body", {
|
||||
|
||||
Reference in New Issue
Block a user