Skip to content

Commit 986ed15

Browse files
authored
fix(ReactPlayer): auto ratio fit (#1061)
1 parent d28327b commit 986ed15

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/components/ReactPlayer/ReactPlayer.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ $block: '.#{$ns}ReactPlayer';
7676
object-fit: contain;
7777
}
7878

79+
&_auto-ratio video {
80+
object-fit: cover;
81+
}
82+
7983
@media only screen and (max-width: map-get($gridBreakpoints, 'sm')) {
8084
&__button_text {
8185
font-size: 20px;

src/components/ReactPlayer/ReactPlayer.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,7 @@ export const ReactPlayerBlock = React.forwardRef<ReactPlayerBlockHandler, ReactP
384384
wrapper: !currentHeight,
385385
controls,
386386
contain,
387+
'auto-ratio': autoRatio,
387388
},
388389
className,
389390
)}

0 commit comments

Comments
 (0)