[Glitch] Fix audio attachments opening in video modal from media tab in web UI
Port c9b8ba50f8
to glitch-soc
Signed-off-by: Thibaut Girka <thib@sitedethib.com>
This commit is contained in:
committed by
Thibaut Girka
parent
c274774d06
commit
360234d1bf
@ -118,6 +118,7 @@ export default class MediaItem extends ImmutablePureComponent {
|
||||
);
|
||||
} else if (['gifv', 'video'].indexOf(attachment.get('type')) !== -1) {
|
||||
const autoPlay = !isIOS() && autoPlayGif;
|
||||
const label = attachment.get('type') === 'video' ? <Icon id='play' /> : 'GIF';
|
||||
|
||||
thumbnail = (
|
||||
<div className={classNames('media-gallery__gifv', { autoplay: autoPlay })}>
|
||||
@ -133,7 +134,8 @@ export default class MediaItem extends ImmutablePureComponent {
|
||||
loop
|
||||
muted
|
||||
/>
|
||||
<span className='media-gallery__gifv__label'>GIF</span>
|
||||
|
||||
<span className='media-gallery__gifv__label'>{label}</span>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user