From a9c77da3c4cc04406b2696621c622f1941e520ad Mon Sep 17 00:00:00 2001 From: "Timothy Z." Date: Thu, 30 Oct 2025 18:01:44 +0200 Subject: [PATCH 1/2] feat(Details): improve selected video logic --- src/components/Video/Video.js | 16 ++++++++++------ src/components/Video/styles.less | 14 ++++++++++++++ 2 files changed, 24 insertions(+), 6 deletions(-) diff --git a/src/components/Video/Video.js b/src/components/Video/Video.js index 21415153f..fe615e39f 100644 --- a/src/components/Video/Video.js +++ b/src/components/Video/Video.js @@ -73,15 +73,19 @@ const Video = ({ className, id, title, thumbnail, season, episode, released, upc const blurThumbnail = profile.settings.hideSpoilers && season && episode && !watched; React.useEffect(() => { - selected && !watched && ref.current?.scrollIntoView({ - behavior: 'smooth', - block: 'nearest', - inline: 'start' - }); + if (selected && ref.current) { + if ((progress && watched) || !watched) { + ref.current.scrollIntoView({ + behavior: 'smooth', + block: 'nearest', + inline: 'start' + }); + } + } }, [selected]); return ( -