mirror of
https://github.com/zulip/zulip.git
synced 2026-07-06 21:18:58 +08:00
user_card_popover: Rename user_info_popover_manage_menu_btn class.
This commit is contained in:
parent
a8bce8e178
commit
7c3f79df0d
@ -267,7 +267,7 @@ export function process_escape_key(e) {
|
||||
if (popovers.any_active()) {
|
||||
if (user_card_popover.user_info_manage_menu_popped()) {
|
||||
user_card_popover.hide_user_info_popover_manage_menu();
|
||||
$("#user_info_popover .user_info_popover_manage_menu_btn").trigger("focus");
|
||||
$("#user_info_popover .user-card-popover-manage-menu-btn").trigger("focus");
|
||||
return true;
|
||||
}
|
||||
popovers.hide_all();
|
||||
|
||||
@ -73,7 +73,7 @@ export function popover_items_handle_keyboard(key, $items) {
|
||||
return;
|
||||
}
|
||||
if (index === -1) {
|
||||
if ($(".user_info_popover_manage_menu_btn").is(":visible")) {
|
||||
if ($(".user-card-popover-manage-menu-btn").is(":visible")) {
|
||||
index = 1;
|
||||
} else {
|
||||
index = 0;
|
||||
|
||||
@ -469,7 +469,7 @@ function focus_user_info_popover_item() {
|
||||
// Our popup menus act kind of funny when you mix keyboard and mouse.
|
||||
const $items = get_user_info_popover_for_message_items();
|
||||
|
||||
if ($(".user_info_popover_manage_menu_btn").is(":visible")) {
|
||||
if ($(".user-card-popover-manage-menu-btn").is(":visible")) {
|
||||
focus_first_popover_item($items, 1);
|
||||
} else {
|
||||
focus_first_popover_item($items);
|
||||
@ -786,7 +786,7 @@ export function register_click_handlers() {
|
||||
user_profile.show_user_profile(user, "manage-profile-tab");
|
||||
});
|
||||
|
||||
$("body").on("click", ".user_info_popover_manage_menu_btn", (e) => {
|
||||
$("body").on("click", ".user-card-popover-manage-menu-btn", (e) => {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
const user_id = elem_to_user_id($(e.target).parents("ul"));
|
||||
|
||||
@ -101,7 +101,7 @@
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.user_info_popover_manage_menu_btn {
|
||||
.user-card-popover-manage-menu-btn {
|
||||
&:hover,
|
||||
&:focus {
|
||||
text-decoration: none;
|
||||
@ -145,7 +145,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
.info_popover_actions .user_info_popover_manage_menu_btn {
|
||||
.info_popover_actions .user-card-popover-manage-menu-btn {
|
||||
opacity: 0.8;
|
||||
|
||||
&:hover {
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
{{/if}}
|
||||
{{#if show_manage_menu }}
|
||||
<span class="user-card-popover-action-buttons">
|
||||
<a class="user_info_popover_manage_menu_btn" role="button" tabindex="0" aria-haspopup="true">
|
||||
<a class="user-card-popover-manage-menu-btn" role="button" tabindex="0" aria-haspopup="true">
|
||||
<i class="popover_action_icon zulip-icon zulip-icon-more-vertical" aria-hidden="true"></i>
|
||||
</a>
|
||||
</span>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user