From 2954490c08cf7267d5c17c435cd728c68fd1ac2f Mon Sep 17 00:00:00 2001 From: PahaN47 Date: Fri, 1 Nov 2024 12:41:56 +0300 Subject: [PATCH] fix(ReactPlayer): auto ratio fit --- src/components/ReactPlayer/ReactPlayer.scss | 4 ++++ src/components/ReactPlayer/ReactPlayer.tsx | 1 + 2 files changed, 5 insertions(+) diff --git a/src/components/ReactPlayer/ReactPlayer.scss b/src/components/ReactPlayer/ReactPlayer.scss index 61cc7669d..8efdec8d9 100644 --- a/src/components/ReactPlayer/ReactPlayer.scss +++ b/src/components/ReactPlayer/ReactPlayer.scss @@ -76,6 +76,10 @@ $block: '.#{$ns}ReactPlayer'; object-fit: contain; } + &_auto-ratio video { + object-fit: cover; + } + @media only screen and (max-width: map-get($gridBreakpoints, 'sm')) { &__button_text { font-size: 20px; diff --git a/src/components/ReactPlayer/ReactPlayer.tsx b/src/components/ReactPlayer/ReactPlayer.tsx index 3a0e78ae7..2cdd4cfb0 100644 --- a/src/components/ReactPlayer/ReactPlayer.tsx +++ b/src/components/ReactPlayer/ReactPlayer.tsx @@ -384,6 +384,7 @@ export const ReactPlayerBlock = React.forwardRef