fix(components/media_modal): Style issues (#4187)
This commit is contained in:
parent
0c7c188c45
commit
a9a0c854e1
3 changed files with 21 additions and 11 deletions
|
@ -5,6 +5,8 @@ export default class ExtendedVideoPlayer extends React.PureComponent {
|
|||
|
||||
static propTypes = {
|
||||
src: PropTypes.string.isRequired,
|
||||
width: PropTypes.number,
|
||||
height: PropTypes.number,
|
||||
time: PropTypes.number,
|
||||
controls: PropTypes.bool.isRequired,
|
||||
muted: PropTypes.bool.isRequired,
|
||||
|
@ -30,7 +32,7 @@ export default class ExtendedVideoPlayer extends React.PureComponent {
|
|||
|
||||
render () {
|
||||
return (
|
||||
<div className='extended-video-player'>
|
||||
<div className='extended-video-player' style={{ width: this.props.width, height: this.props.height }}>
|
||||
<video
|
||||
ref={this.setRef}
|
||||
src={this.props.src}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue