Skip to content

Commit

Permalink
fix: iframe video resize (#1091)
Browse files Browse the repository at this point in the history
* fix(FullscreenMedia): fix resize
  • Loading branch information
aeksandla authored Dec 24, 2024
1 parent c0d060a commit 09d7cff
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/FullscreenMedia/FullscreenMedia.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,12 @@ $modalYoutubeWidth: min(65vw, #{$newContentWidth});
&_type_youtube {
@extend %modal-media;

width: $modalYoutubeWidth;
height: calc(#{$modalYoutubeWidth} * 9 / 16);
max-width: $modalYoutubeWidth;
width: 100%;
aspect-ratio: 16/9;
height: calc(
#{$modalYoutubeWidth} * 9 / 16
) !important; /* stylelint-disable-line declaration-no-important */
}
}

Expand Down

0 comments on commit 09d7cff

Please sign in to comment.