Skip to content

Commit

Permalink
allow override of all styles (except object-fit)
Browse files Browse the repository at this point in the history
tkloht committed Jun 18, 2016

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent b77e85b commit 0672580
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/VideoCover.js
Original file line number Diff line number Diff line change
@@ -60,10 +60,10 @@ class VideoCover extends Component {

render() {
const style = {
...this.props.style,
objectFit: 'cover',
width: '100%',
height: '100%',
...this.props.style,
objectFit: 'cover',
};
switch (this.props.forceFallback || /MSIE|Trident|Edge/.test(navigator.userAgent)) {
case true:

0 comments on commit 0672580

Please sign in to comment.