mirror of https://github.com/zulip/zulip.git
me_messages: Clean up unused .sender_name-in-status class.
This commit is contained in:
parent
e9e18454d2
commit
ce04c98b47
|
@ -730,17 +730,13 @@ export function hide_playground_links_popover() {
|
|||
}
|
||||
|
||||
export function register_click_handlers() {
|
||||
$("#main_div").on(
|
||||
"click",
|
||||
".sender_name, .sender_name-in-status, .message-avatar",
|
||||
function (e) {
|
||||
const $row = $(this).closest(".message_row");
|
||||
e.stopPropagation();
|
||||
const message = message_lists.current.get(rows.id($row));
|
||||
const user = people.get_by_user_id(message.sender_id);
|
||||
show_user_info_popover_for_message(this, user, message);
|
||||
},
|
||||
);
|
||||
$("#main_div").on("click", ".sender_name, .message-avatar", function (e) {
|
||||
const $row = $(this).closest(".message_row");
|
||||
e.stopPropagation();
|
||||
const message = message_lists.current.get(rows.id($row));
|
||||
const user = people.get_by_user_id(message.sender_id);
|
||||
show_user_info_popover_for_message(this, user, message);
|
||||
});
|
||||
|
||||
$("#main_div").on("click", ".user-mention", function (e) {
|
||||
const id_string = $(this).attr("data-user-id");
|
||||
|
|
|
@ -342,8 +342,7 @@ $time_column_min_width: 50px; /* + padding */
|
|||
padding: $message_box_margin 0 0 5px;
|
||||
}
|
||||
|
||||
.sender_name,
|
||||
.sender_name-in-status {
|
||||
.sender_name {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
|
|
|
@ -1577,21 +1577,11 @@ td.pointer {
|
|||
.sender_name {
|
||||
display: inline-block;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.sender_name-in-status {
|
||||
margin-right: 3px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.sender_name,
|
||||
.sender_name-in-status {
|
||||
color: var(--color-text-sender-name);
|
||||
}
|
||||
|
||||
.sender_name_hovered {
|
||||
.sender_name,
|
||||
.sender_name-in-status {
|
||||
.sender_name {
|
||||
color: hsl(200deg 100% 40%);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -111,7 +111,7 @@ test_ui("sender_hover", ({override, mock_template}) => {
|
|||
page_params.is_spectator = false;
|
||||
override($.fn, "popover", noop);
|
||||
|
||||
const selection = ".sender_name, .sender_name-in-status, .message-avatar";
|
||||
const selection = ".sender_name, .message-avatar";
|
||||
const handler = $("#main_div").get_on_handler("click", selection);
|
||||
|
||||
const message = {
|
||||
|
|
Loading…
Reference in New Issue