diff --git a/frontend/src/components/EmbeddableVideoPlayer.tsx b/frontend/src/components/EmbeddableVideoPlayer.tsx index 04a5793c..5476cce7 100644 --- a/frontend/src/components/EmbeddableVideoPlayer.tsx +++ b/frontend/src/components/EmbeddableVideoPlayer.tsx @@ -63,6 +63,9 @@ const EmbeddableVideoPlayer = ({ videoId }: EmbeddableVideoPlayerProps) => { setVideoResponse(videoResponse); + const inlinePlayer = document.getElementById('inline-player'); + inlinePlayer?.scrollIntoView(); + setRefresh(false); setLoading(false); })(); @@ -88,7 +91,7 @@ const EmbeddableVideoPlayer = ({ videoId }: EmbeddableVideoPlayerProps) => { return ( <> -
+
{!loading && ( { setSearchParams({ videoId: video.youtube_id }); - - window.scroll({ top: 0, left: 0, behavior: 'smooth' }); }} >