]> cat aescling's git repositories - mastodon.git/commitdiff
Fix video player width not being updated to fit container width
authorThibaut Girka <thib@sitedethib.com>
Sun, 17 Feb 2019 20:58:02 +0000 (21:58 +0100)
committerThibG <thib@sitedethib.com>
Mon, 18 Feb 2019 09:44:37 +0000 (10:44 +0100)
app/javascript/flavours/glitch/features/video/index.js

index a6f651db6534c69677df6c8e78a6289cae48ae93..cf66536c4115ad040a41311be1b703e670ae2264 100644 (file)
@@ -366,7 +366,6 @@ export default class Video extends React.PureComponent {
       width  = containerWidth;
       height = containerWidth / (16/9);
 
-      playerStyle.width  = width;
       playerStyle.height = height;
     } else if (inline) {
       return (<div className={computedClass} ref={this.setPlayerRef} tabindex={0}></div>);