diff options
author | Thibaut Girka <thib@sitedethib.com> | 2018-11-23 14:12:15 +0100 |
---|---|---|
committer | ThibG <thib@sitedethib.com> | 2018-11-25 11:29:56 +0100 |
commit | 6b6e633c095485f95350c4308a942192e5fe8806 (patch) | |
tree | ee12ad60f189753aa0b2e84fbf63a1db95c27fdc /app/javascript/flavours/glitch/features/status | |
parent | b41d60f2d8ab0759b237e887a8161dbc8ad8c698 (diff) |
Update MediaGallery and Video props when folding/unfolding CWs in detailed statuses
Diffstat (limited to 'app/javascript/flavours/glitch/features/status')
-rw-r--r-- | app/javascript/flavours/glitch/features/status/components/detailed_status.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/javascript/flavours/glitch/features/status/components/detailed_status.js b/app/javascript/flavours/glitch/features/status/components/detailed_status.js index 1fe0c069d..436c2df0a 100644 --- a/app/javascript/flavours/glitch/features/status/components/detailed_status.js +++ b/app/javascript/flavours/glitch/features/status/components/detailed_status.js @@ -65,6 +65,7 @@ export default class DetailedStatus extends ImmutablePureComponent { sensitive={status.get('sensitive')} letterbox={settings.getIn(['media', 'letterbox'])} fullwidth={settings.getIn(['media', 'fullwidth'])} + preventPlayback={!expanded} onOpenVideo={this.handleOpenVideo} autoplay /> @@ -78,6 +79,7 @@ export default class DetailedStatus extends ImmutablePureComponent { media={status.get('media_attachments')} letterbox={settings.getIn(['media', 'letterbox'])} fullwidth={settings.getIn(['media', 'fullwidth'])} + hidden={!expanded} onOpenMedia={this.props.onOpenMedia} /> ); |