Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
user_group_popover: Show popover on all .messagebox user group mention.
Shubham Padia29809ea61b94
diff --git a/web/src/user_group_popover.ts b/web/src/user_group_popover.tsindex 7006480ca48..709e4f8599f 100644--- a/web/src/user_group_popover.ts+++ b/web/src/user_group_popover.ts@@ -143,6 +143,13 @@ export function register_click_handlers(): void {toggle_user_group_info_popover(this, undefined);},);++ // Note: Message feeds and drafts have their own direct event listeners+ // that run before this one and call stopPropagation.+ $("body").on("click", ".messagebox .user-group-mention", function (this: HTMLElement, e) {+ e.stopPropagation();+ toggle_user_group_info_popover(this, undefined);+ });}function fetch_group_members(member_ids: number[]): PopoverGroupMember[] {diff --git a/web/styles/rendered_markdown.css b/web/styles/rendered_markdown.cssindex c6b2e97c69e..e4fda2cce4d 100644--- a/web/styles/rendered_markdown.css+++ b/web/styles/rendered_markdown.css@@ -173,9 +173,6 @@}.user-mention {- /* We have to explicitly mention this for compose box preview- where cursor is set to not-allowed */- cursor: pointer;color: var(--color-text-other-mention);background-color: var(--color-background-text-direct-mention);@@ -189,6 +186,13 @@}}+ .user-mention,+ .user-group-mention {+ /* We have to explicitly mention this for compose box preview+ where cursor is set to not-allowed */+ cursor: pointer;+ }+/* We show the same cursor as the parent element for `@all`mention */.user-mention-all {