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 2b0491bb3c
commit 2d5f0a0002

View file

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