left_sidebar: Show Direct Messages controls on DM area hover.

This commit is contained in:
Karl Stolley 2024-10-24 15:26:15 -05:00 committed by Tim Abbott
parent 34ff1de338
commit 9e8d908a37
2 changed files with 9 additions and 0 deletions

View File

@ -258,4 +258,12 @@ export function initialize(): void {
clear_search(); clear_search();
}); });
$(".direct-messages-container").on("mouseenter", () => {
$("#direct-messages-section-header").addClass("hover-over-dm-section");
});
$(".direct-messages-container").on("mouseleave", () => {
$("#direct-messages-section-header").removeClass("hover-over-dm-section");
});
} }

View File

@ -259,6 +259,7 @@
} }
} }
&.hover-over-dm-section,
&.zoom-in, &.zoom-in,
&:hover { &:hover {
#compose-new-direct-message, #compose-new-direct-message,