diff --git a/web/src/user_card_popover.js b/web/src/user_card_popover.js index 29d2973544..66861209ee 100644 --- a/web/src/user_card_popover.js +++ b/web/src/user_card_popover.js @@ -24,13 +24,13 @@ import * as narrow from "./narrow"; import * as overlays from "./overlays"; import {page_params} from "./page_params"; import * as people from "./people"; +import * as popovers from "./popovers"; import { focus_first_popover_item, hide_all, hide_all_except_sidebars, popover_items_handle_keyboard, } from "./popovers"; -import * as popovers from "./popovers"; import * as rows from "./rows"; import * as settings_config from "./settings_config"; import * as settings_users from "./settings_users"; @@ -571,7 +571,7 @@ export function register_click_handlers() { toggle_user_info_popover_for_message(this, user, message); }); - $("body").on("click", ".info_popover_actions .narrow_to_private_messages", (e) => { + $("body").on("click", ".user-card-popover-actions .narrow_to_private_messages", (e) => { const user_id = elem_to_user_id($(e.target).parents("ul")); const email = people.get_by_user_id(user_id).email; hide_all(); @@ -583,7 +583,7 @@ export function register_click_handlers() { e.preventDefault(); }); - $("body").on("click", ".info_popover_actions .narrow_to_messages_sent", (e) => { + $("body").on("click", ".user-card-popover-actions .narrow_to_messages_sent", (e) => { const user_id = elem_to_user_id($(e.target).parents("ul")); const email = people.get_by_user_id(user_id).email; hide_all(); @@ -595,7 +595,7 @@ export function register_click_handlers() { e.preventDefault(); }); - $("body").on("click", ".info_popover_actions .clear_status", (e) => { + $("body").on("click", ".user-card-popover-actions .clear_status", (e) => { e.preventDefault(); const me = elem_to_user_id($(e.target).parents("ul")); user_status.server_update_status({ @@ -604,12 +604,12 @@ export function register_click_handlers() { emoji_name: "", emoji_code: "", success() { - $(".info_popover_actions #status_message").empty(); + $(".user-card-popover-actions #status_message").empty(); }, }); }); - $("body").on("click", ".info_popover_actions .sidebar-popover-reactivate-user", (e) => { + $("body").on("click", ".user-card-popover-actions .sidebar-popover-reactivate-user", (e) => { const user_id = elem_to_user_id($(e.target).parents("ul")); hide_all(); e.stopPropagation(); @@ -630,7 +630,7 @@ export function register_click_handlers() { settings_users.confirm_reactivation(user_id, handle_confirm, true); }); - $("body").on("click", ".info_popover_actions .view_full_user_profile", (e) => { + $("body").on("click", ".user-card-popover-actions .view_full_user_profile", (e) => { const user_id = elem_to_user_id($(e.target).parents("ul")); const user = people.get_by_user_id(user_id); user_profile.show_user_profile(user); diff --git a/web/styles/popovers.css b/web/styles/popovers.css index da5da60c35..e791dfa9a0 100644 --- a/web/styles/popovers.css +++ b/web/styles/popovers.css @@ -115,7 +115,7 @@ } } -.info_popover_actions .custom_user_field { +.user-card-popover-actions .custom_user_field { display: flex; align-items: center; @@ -145,7 +145,7 @@ } } -.info_popover_actions .user-card-popover-manage-menu-btn { +.user-card-popover-actions .user-card-popover-manage-menu-btn { opacity: 0.8; &:hover { @@ -210,7 +210,7 @@ } ul { - &.info_popover_actions i, + &.user-card-popover-actions i, &.actions_popover i, &.streams_popover i, &.topics_popover i { @@ -255,7 +255,7 @@ ul { } } - &.info_popover_actions i.fa-edit { + &.user-card-popover-actions i.fa-edit { vertical-align: middle; } } diff --git a/web/templates/user_card_popover_content.hbs b/web/templates/user_card_popover_content.hbs index 802a886919..a95eed3dcc 100644 --- a/web/templates/user_card_popover_content.hbs +++ b/web/templates/user_card_popover_content.hbs @@ -1,5 +1,5 @@ {{! Contents of the "message info" popup }} -