about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLynx Kotoura <lynx@lv9.org>2017-07-18 02:05:29 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-07-17 19:05:29 +0200
commit681c33d1f4c395742918eb66f2db979b0d628118 (patch)
tree15871d87d833045938bcdbf38ed7bb3143f007c5
parent7f35947d8ed26690b4505f740ee9fbc73e79009a (diff)
Quit overwriting style of extended-video-player (#4237)
Though size of extended-video-player is already fixed to 80vw*80vh in components.scss, player size was also set to original video size in extended_video_player.js. Video size is fixed to 80vw*80vh, so video player's size must also be fixed to 80vw*80vh.
-rw-r--r--app/javascript/mastodon/components/extended_video_player.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/mastodon/components/extended_video_player.js b/app/javascript/mastodon/components/extended_video_player.js
index b38a4b8ff..5ab5e9e58 100644
--- a/app/javascript/mastodon/components/extended_video_player.js
+++ b/app/javascript/mastodon/components/extended_video_player.js
@@ -32,7 +32,7 @@ export default class ExtendedVideoPlayer extends React.PureComponent {
 
   render () {
     return (
-      <div className='extended-video-player' style={{ width: this.props.width, height: this.props.height }}>
+      <div className='extended-video-player'>
         <video
           ref={this.setRef}
           src={this.props.src}