Skip to content

Commit

Permalink
fix(videodetail): fix real 100vh player
Browse files Browse the repository at this point in the history
  • Loading branch information
royschut committed Jun 24, 2021
1 parent f899f5d commit 5ff99e1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/components/Video/Video.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@
top: 0;
left: 0;
width: 100vw;
height: 100vh;
height: calc(100vh - calc(100vh - 100%));
overflow: hidden;
background-color: variables.$black;
}
Expand All @@ -228,7 +228,7 @@
justify-content: center;
align-items: center;
width: 100vw;
height: 100vh;
height: calc(100vh - calc(100vh - 100%));
}

.playerOverlay {
Expand Down
2 changes: 1 addition & 1 deletion src/containers/Cinema/Cinema.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
&.fill {
display: flex;
width: 100vw;
height: 100vh;
height: calc(100vh - calc(100vh - 100%));
}
}
4 changes: 2 additions & 2 deletions src/screens/Movie/Movie.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ const Movie = ({
};

useEffect(() => {
if (play) document.body.style.overflowY = 'hidden';
document.body.style.overflowY = play ? 'hidden' : '';
return () => {
if (play) document.body.style.overflowY = '';
document.body.style.overflowY = '';
};
}, [play]);

Expand Down

0 comments on commit 5ff99e1

Please sign in to comment.