onboarding_steps: Dim background of navigation tour video.

This commit is contained in:
Aman Agrawal
2025-03-11 06:03:43 +00:00
committed by Tim Abbott
parent 7cd0fc645b
commit d1704deb52
2 changed files with 6 additions and 0 deletions

View File

@@ -135,12 +135,14 @@ function show_navigation_tour_video(navigation_tour_video_url: string | null): v
"hidden",
);
video_ended_button_visible = false;
$video.removeClass("dimmed-background");
}
});
$video.on("ended", () => {
$("#navigation-tour-video-ended-button-wrapper").css("visibility", "visible");
video_ended_button_visible = true;
$video.addClass("dimmed-background");
$skip_video_button.css("visibility", "hidden");
$watch_later_button.css("visibility", "hidden");
// Exit fullscreen to make the 'video-ended-button-wrapper' button visible.

View File

@@ -705,6 +705,10 @@
aspect-ratio: 16 / 9;
cursor: pointer;
border: 1px solid hsl(0deg 0% 50%);
&.dimmed-background {
opacity: 0.4;
}
}
#navigation-tour-video-ended-button-wrapper {