Skip to content

Commit

Permalink
fix(gif) Keep showing GIF on hover (jitsi#11266)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertpin authored and pull[bot] committed Mar 30, 2022
1 parent fd1d17f commit 0c5b5d4
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions react/features/filmstrip/components/web/Thumbnail.js
Original file line number Diff line number Diff line change
Expand Up @@ -827,10 +827,7 @@ class Thumbnail extends Component<Props, State> {
const { _gifSrc, classes } = this.props;

return _gifSrc && (
<div
className = { classes.gif }
onMouseEnter = { this._onGifMouseEnter }
onMouseLeave = { this._onGifMouseLeave }>
<div className = { classes.gif }>
<img
alt = 'GIF'
src = { _gifSrc } />
Expand Down Expand Up @@ -1000,6 +997,12 @@ class Thumbnail extends Component<Props, State> {
className = { clsx(classes.borderIndicator,
_gifSrc && classes.borderIndicatorOnTop,
'active-speaker-indicator') } />
{_gifSrc && (
<div
className = { clsx(classes.borderIndicator, classes.borderIndicatorOnTop) }
onMouseEnter = { this._onGifMouseEnter }
onMouseLeave = { this._onGifMouseLeave } />
)}
</span>
);
}
Expand Down

0 comments on commit 0c5b5d4

Please sign in to comment.