Skip to content

Commit 09d7cff

Browse files
authored
fix: iframe video resize (#1091)
* fix(FullscreenMedia): fix resize
1 parent c0d060a commit 09d7cff

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/components/FullscreenMedia/FullscreenMedia.scss

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,12 @@ $modalYoutubeWidth: min(65vw, #{$newContentWidth});
4747
&_type_youtube {
4848
@extend %modal-media;
4949

50-
width: $modalYoutubeWidth;
51-
height: calc(#{$modalYoutubeWidth} * 9 / 16);
50+
max-width: $modalYoutubeWidth;
51+
width: 100%;
52+
aspect-ratio: 16/9;
53+
height: calc(
54+
#{$modalYoutubeWidth} * 9 / 16
55+
) !important; /* stylelint-disable-line declaration-no-important */
5256
}
5357
}
5458

0 commit comments

Comments
 (0)