Don't render placeholder when image is visible.

pull/21833/head
Richard Lewis 2018-03-08 23:12:12 +00:00
parent e36ae3cede
commit e7c19fd83b
1 changed files with 2 additions and 2 deletions

View File

@ -103,7 +103,7 @@ export default class MStickerBody extends MImageBody {
height: placeholderFixupHeight,
}}>
<div className={'mx_MStickerBody_thumbnail_container'}>
{ this.state.placeholderVisible &&
<div
className={'mx_MStickerBody_placeholder ' + this.state.placeholderClasses}
style={{
@ -115,7 +115,7 @@ export default class MStickerBody extends MImageBody {
src={'img/icons-show-stickers.svg'}
width={placeholderSize}
height={placeholderSize} />
</div>
</div> }
<img
className={'mx_MStickerBody_thumbnail ' + this.state.thumbnailClasses}
src={thumbUrl}