Nest sticker image element for correct positioning of tooltips.

pull/21833/head
Richard Lewis 2018-03-06 10:48:32 +00:00
parent e2cedbe9d7
commit 7755a3ce90
2 changed files with 4401 additions and 7 deletions

View File

@ -53,13 +53,15 @@ export default class MStickerBody extends MImageBody {
return (
<span className="mx_MImageBody" ref="body">
<img className="mx_MImageBody_thumbnail" src={thumbUrl} ref="image"
alt={content.body}
onLoad={this.props.onWidgetLoad}
onMouseEnter={this._onMouseEnter}
onMouseLeave={this._onMouseLeave}
/>
{ tooltip }
<div className="mx_MImageBody_thumbnail_container">
<img className="mx_MImageBody_thumbnail" src={thumbUrl} ref="image"
alt={content.body}
onLoad={this.props.onWidgetLoad}
onMouseEnter={this._onMouseEnter}
onMouseLeave={this._onMouseLeave}
/>
{ tooltip }
</div>
</span>
);
}

4392
yarn.lock Normal file

File diff suppressed because it is too large Load Diff