refactor: remove z-index + fix delay

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

View file

@ -611,7 +611,7 @@ const Player = ({ urlParams, queryParams }) => {
onDoubleClick={onVideoDoubleClick}
/>
{
video.state.buffering ?
(video.state.buffering || !video.state.loaded) && !error ?
<BufferingLoader className={classnames(styles['layer'], styles['buffering-layer'])} logo={player?.metaItem?.content?.logo} />
:
null

View file

@ -41,7 +41,6 @@ html:not(.active-slider-within) {
z-index: 0;
&.buffering-layer, &.error-layer {
z-index: 1;
background: transparent;
}
@ -58,7 +57,6 @@ html:not(.active-slider-within) {
bottom: initial;
background: transparent;
overflow: visible;
z-index: 2;
&::before {
position: absolute;
@ -88,7 +86,6 @@ html:not(.active-slider-within) {
&.control-bar-layer {
top: initial;
overflow: visible;
z-index: 2;
&::before {
position: absolute;