You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
Nest sticker image element for correct positioning of tooltips.
This commit is contained in:
@@ -53,13 +53,15 @@ export default class MStickerBody extends MImageBody {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<span className="mx_MImageBody" ref="body">
|
<span className="mx_MImageBody" ref="body">
|
||||||
<img className="mx_MImageBody_thumbnail" src={thumbUrl} ref="image"
|
<div className="mx_MImageBody_thumbnail_container">
|
||||||
alt={content.body}
|
<img className="mx_MImageBody_thumbnail" src={thumbUrl} ref="image"
|
||||||
onLoad={this.props.onWidgetLoad}
|
alt={content.body}
|
||||||
onMouseEnter={this._onMouseEnter}
|
onLoad={this.props.onWidgetLoad}
|
||||||
onMouseLeave={this._onMouseLeave}
|
onMouseEnter={this._onMouseEnter}
|
||||||
/>
|
onMouseLeave={this._onMouseLeave}
|
||||||
{ tooltip }
|
/>
|
||||||
|
{ tooltip }
|
||||||
|
</div>
|
||||||
</span>
|
</span>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user