css: Rename .message_table to .message-list.

This commit is contained in:
Karl Stolley 2023-08-14 13:51:37 -05:00 committed by Tim Abbott
parent c741c43800
commit 058d21c4e2
7 changed files with 10 additions and 10 deletions

View File

@ -248,9 +248,9 @@
<div id="loading_older_messages_indicator"></div>
<div id="page_loading_indicator"></div>
<div id="message_feed_errors_container"></div>
<div class="message_table focused-message-list" id="zhome" role="list" aria-live="polite" aria-label="{{ _('Messages') }}">
<div class="message-list focused-message-list" id="zhome" role="list" aria-live="polite" aria-label="{{ _('Messages') }}">
</div>
<div class="message_table" id="zfilt" role="list" aria-live="polite" aria-label="{{ _('Messages') }}">
<div class="message-list" id="zfilt" role="list" aria-live="polite" aria-label="{{ _('Messages') }}">
</div>
<div id="typing_notifications">
</div>

View File

@ -121,7 +121,7 @@ export function initialize() {
}
const config = {attributes: false, childList: true, subtree: true};
const target = $elem.parents(".message_table.focused-message-list").get(0);
const target = $elem.parents(".message-list.focused-message-list").get(0);
const nodes_to_check_for_removal = [
$elem.parents(".recipient_row").get(0),
$elem.parents(".message_reactions").get(0),
@ -174,7 +174,7 @@ export function initialize() {
},
});
message_list_tooltip(".message_table .message_time", {
message_list_tooltip(".message-list .message_time", {
onShow(instance) {
const $time_elem = $(instance.reference);
const $row = $time_elem.closest(".message_row");

View File

@ -21,7 +21,7 @@ export function all_rendered_message_lists() {
}
export function all_current_message_rows() {
return $(`#${current.table_name}.message_table .message_row`);
return $(`#${current.table_name}.message-list .message_row`);
}
export function update_recipient_bar_background_color() {

View File

@ -204,7 +204,7 @@ export function get_reaction_title_data(message_id, local_id) {
}
export function get_reaction_section(message_id) {
const $message_element = $(".message_table").find(`[zid='${CSS.escape(message_id)}']`);
const $message_element = $(".message-list").find(`[zid='${CSS.escape(message_id)}']`);
const $section = $message_element.find(".message_reactions");
return $section;
}

View File

@ -329,12 +329,12 @@ export function initialize_kitchen_sink_stuff() {
$("body").addClass("more_dense_mode");
}
$("#main_div").on("mouseover", ".message_table .message_row", function () {
$("#main_div").on("mouseover", ".message-list .message_row", function () {
const $row = $(this).closest(".message_row");
message_hover($row);
});
$("#main_div").on("mouseleave", ".message_table .message_row", () => {
$("#main_div").on("mouseleave", ".message-list .message_row", () => {
message_unhover();
});

View File

@ -1683,7 +1683,7 @@ td.pointer {
bottom: 4px;
}
div.message_table {
div.message-list {
border-collapse: separate;
margin-left: auto;
display: none;

View File

@ -349,7 +349,7 @@ test("prevent_simultaneous_requests_updating_reaction", ({override, override_rew
function stub_reactions(message_id) {
const $message_row = $.create("message-row-stub");
const $message_reactions = $.create("reactions-stub");
$(".message_table").set_find_results(`[zid='${CSS.escape(message_id)}']`, $message_row);
$(".message-list").set_find_results(`[zid='${CSS.escape(message_id)}']`, $message_row);
$message_row.set_find_results(".message_reactions", $message_reactions);
return $message_reactions;
}