1
0
mirror of https://github.com/whippyshou/mastodon synced 2024-12-01 16:28:29 +09:00

Fix some account media gallery items having empty labels (#15073)

Remove the labels entirely for images instead of putting an empty label.
This commit is contained in:
ThibG 2020-11-01 18:31:39 +01:00 committed by GitHub
parent c49805efb1
commit 9d023ed4f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -122,7 +122,7 @@ export default class MediaItem extends ImmutablePureComponent {
<div className='media-gallery__gifv'> <div className='media-gallery__gifv'>
{content} {content}
<span className='media-gallery__gifv__label'>{label}</span> {label && <span className='media-gallery__gifv__label'>{label}</span>}
</div> </div>
); );
} }