ui_init: Handle youtube play icon positioning via mouseenter handler.

Previously, we were experiencing a regression in the positioning of
the play icon for youtube previews, as such, this commit uses a
previously created `handle_video_preview_mouseenter` to ensure the
positioning is always correct.

This is an ugly way of doing things, because this could be handled
directly through CSS flexbox, however, it is an acceptable temporary
fix.
This commit is contained in:
YashRE42 2022-03-24 18:32:50 +05:30 committed by Tim Abbott
parent 58184fc2a9
commit 1b4ff0631c
1 changed files with 1 additions and 1 deletions

View File

@ -335,7 +335,7 @@ export function initialize_kitchen_sink_stuff() {
}
$("#main_div").on("mouseenter", ".youtube-video a", function () {
$(this).addClass("fa fa-play");
handle_video_preview_mouseenter($(this));
});
$("#main_div").on("mouseleave", ".youtube-video a", function () {