refactor: move dom position

This commit is contained in:
Timothy Z. 2024-05-17 11:54:23 +03:00
parent 1e5e87ca38
commit 90a313af8d
2 changed files with 7 additions and 7 deletions

View file

@ -610,12 +610,6 @@ const Player = ({ urlParams, queryParams }) => {
onClick={onVideoClick}
onDoubleClick={onVideoDoubleClick}
/>
{
(video.state.buffering || !video.state.loaded) && !error ?
<BufferingLoader className={classnames(styles['layer'], styles['buffering-layer'])} logo={player?.metaItem?.content?.logo} />
:
null
}
{
!video.state.loaded ?
<div className={classnames(styles['layer'], styles['background-layer'])}>
@ -624,6 +618,12 @@ const Player = ({ urlParams, queryParams }) => {
:
null
}
{
(video.state.buffering || !video.state.loaded) && !error ?
<BufferingLoader className={classnames(styles['layer'], styles['buffering-layer'])} logo={player?.metaItem?.content?.logo} />
:
null
}
{
error !== null ?
<Error

View file

@ -49,7 +49,7 @@ html:not(.active-slider-within) {
width: 100vw;
height: 100vh;
object-fit: cover;
opacity: 0.7;
opacity: 0.6;
}
}