Fix drawer resize

This commit is contained in:
Rafael 2022-02-07 10:49:18 -03:00 committed by Thomas Zarebczan
parent 6bb7a155cd
commit 67053beda9

View file

@ -34,7 +34,7 @@ export default function SwipeableDrawer(props: Props) {
const videoHeight = coverHeight || (mobilePlayerDimensions ? mobilePlayerDimensions.height : 0);
React.useEffect(() => {
if (open && !mobilePlayerDimensions && !coverHeight) {
if (open && !mobilePlayerDimensions) {
const element = document.querySelector(`.file-page__video-container`);
if (element) {