fix(gif) Keep showing GIF on hover (#11266)
This commit is contained in:
parent
270070716b
commit
1a3432d580
|
@ -827,10 +827,7 @@ class Thumbnail extends Component<Props, State> {
|
||||||
const { _gifSrc, classes } = this.props;
|
const { _gifSrc, classes } = this.props;
|
||||||
|
|
||||||
return _gifSrc && (
|
return _gifSrc && (
|
||||||
<div
|
<div className = { classes.gif }>
|
||||||
className = { classes.gif }
|
|
||||||
onMouseEnter = { this._onGifMouseEnter }
|
|
||||||
onMouseLeave = { this._onGifMouseLeave }>
|
|
||||||
<img
|
<img
|
||||||
alt = 'GIF'
|
alt = 'GIF'
|
||||||
src = { _gifSrc } />
|
src = { _gifSrc } />
|
||||||
|
@ -1000,6 +997,12 @@ class Thumbnail extends Component<Props, State> {
|
||||||
className = { clsx(classes.borderIndicator,
|
className = { clsx(classes.borderIndicator,
|
||||||
_gifSrc && classes.borderIndicatorOnTop,
|
_gifSrc && classes.borderIndicatorOnTop,
|
||||||
'active-speaker-indicator') } />
|
'active-speaker-indicator') } />
|
||||||
|
{_gifSrc && (
|
||||||
|
<div
|
||||||
|
className = { clsx(classes.borderIndicator, classes.borderIndicatorOnTop) }
|
||||||
|
onMouseEnter = { this._onGifMouseEnter }
|
||||||
|
onMouseLeave = { this._onGifMouseLeave } />
|
||||||
|
)}
|
||||||
</span>
|
</span>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue