mirror of
https://git.vectorsigma.ru/public/tubearchivist.git
synced 2026-08-04 21:39:49 +00:00
Refac overwrite scrollIntoView default for consistency
This commit is contained in:
@@ -66,7 +66,7 @@ const EmbeddableVideoPlayer = ({ videoId }: EmbeddableVideoPlayerProps) => {
|
||||
|
||||
setVideoResponse(videoResponse);
|
||||
|
||||
inlinePlayerRef.current?.scrollIntoView();
|
||||
inlinePlayerRef.current?.scrollIntoView({ block: 'start', inline: 'start' });
|
||||
|
||||
setRefresh(false);
|
||||
}
|
||||
@@ -75,7 +75,7 @@ const EmbeddableVideoPlayer = ({ videoId }: EmbeddableVideoPlayerProps) => {
|
||||
}, [videoId, refresh]);
|
||||
|
||||
useEffect(() => {
|
||||
inlinePlayerRef.current?.scrollIntoView();
|
||||
inlinePlayerRef.current?.scrollIntoView({ block: 'start', inline: 'start' });
|
||||
}, []);
|
||||
|
||||
if (videoResponse === undefined) {
|
||||
|
||||
Reference in New Issue
Block a user