fix(Video): content shifts during scroll

This commit is contained in:
Timothy Z. 2025-10-27 12:31:45 +02:00
parent 16877fa4bf
commit 8ab582080d

View file

@ -75,6 +75,8 @@ const Video = ({ className, id, title, thumbnail, season, episode, released, upc
React.useEffect(() => {
selected && ref.current?.scrollIntoView({
behavior: 'smooth',
block: 'nearest',
inline: 'start'
});
}, [selected]);