Skip to content

Commit

Permalink
Prevent double inline styles being applied
Browse files Browse the repository at this point in the history
Fixes #609
  • Loading branch information
cookpete committed Jun 13, 2019
1 parent 5baad56 commit ed1c70b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
3 changes: 1 addition & 2 deletions src/players/DailyMotion.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,7 @@ export class DailyMotion extends Component {
const style = {
width: '100%',
height: '100%',
backgroundColor: 'black',
...this.props.style
backgroundColor: 'black'
}
return (
<div style={style}>
Expand Down
3 changes: 1 addition & 2 deletions src/players/SoundCloud.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,7 @@ export class SoundCloud extends Component {
render () {
const style = {
width: '100%',
height: '100%',
...this.props.style
height: '100%'
}
return (
<iframe
Expand Down
3 changes: 1 addition & 2 deletions src/players/Vimeo.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,7 @@ export class Vimeo extends Component {
width: '100%',
height: '100%',
overflow: 'hidden',
backgroundColor: 'black',
...this.props.style
backgroundColor: 'black'
}
return (
<div
Expand Down
3 changes: 1 addition & 2 deletions src/players/YouTube.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,7 @@ export class YouTube extends Component {
render () {
const style = {
width: '100%',
height: '100%',
...this.props.style
height: '100%'
}
return (
<div style={style}>
Expand Down

0 comments on commit ed1c70b

Please sign in to comment.