ui: Make selectors more specific for message hover.

The hover values here should not apply to draft
messages, for example.
This commit is contained in:
Steve Howell 2020-04-02 19:55:54 +00:00 committed by Tim Abbott
parent 8062192759
commit beaf488eeb
1 changed files with 2 additions and 2 deletions

View File

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