message_view_header: Remove usage of nth-last-child selector.

This commit aims to remove all usage of the nth-last-child selector
related to the message_view_header, continuing the change from
65acbfa4c4.
This commit is contained in:
YashRE42 2021-10-05 09:47:22 +00:00 committed by Tim Abbott
parent 89be686d9e
commit 4afcd15baa
2 changed files with 2 additions and 2 deletions

View File

@ -93,7 +93,7 @@ function bind_title_area_handlers() {
e.stopPropagation(); e.stopPropagation();
}); });
$("#message_view_header span:nth-last-child(2)").on("click", (e) => { $("#message_view_header .navbar-click-opens-search").on("click", (e) => {
if (document.getSelection().type === "Range") { if (document.getSelection().type === "Range") {
// Allow copy/paste to work normally without interference. // Allow copy/paste to work normally without interference.
return; return;

View File

@ -341,7 +341,7 @@ body.night-mode {
} }
} }
#message_view_header span:nth-last-child(2):hover + .search_closed { #message_view_header .navbar-click-opens-search:hover + .search_closed {
color: hsl(0, 0%, 100%); color: hsl(0, 0%, 100%);
} }