Skip to content

Commit

Permalink
fix(ReactPlayer): auto ratio fit (#1061)
Browse files Browse the repository at this point in the history
  • Loading branch information
PahaN47 authored Nov 1, 2024
1 parent d28327b commit 986ed15
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/ReactPlayer/ReactPlayer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions src/components/ReactPlayer/ReactPlayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,7 @@ export const ReactPlayerBlock = React.forwardRef<ReactPlayerBlockHandler, ReactP
wrapper: !currentHeight,
controls,
contain,
'auto-ratio': autoRatio,
},
className,
)}
Expand Down

0 comments on commit 986ed15

Please sign in to comment.