Refac improve inline embeddable player functionality

This commit is contained in:
MerlinScheurer
2024-12-27 19:31:45 +01:00
parent 3d43ade857
commit 20e3b7b7ff
4 changed files with 17 additions and 3 deletions

View File

@@ -39,6 +39,8 @@ const VideoListItem = ({
<a
onClick={() => {
setSearchParams({ videoId: video.youtube_id });
window.scroll({ top: 0, left: 0, behavior: 'smooth' });
}}
>
<div className={`video-thumb-wrap ${viewLayout}`}>