Handle animated emoji on mouse hover in CWs and poll options

signup-info-prompt
Thibaut Girka 2019-07-23 11:10:22 +02:00
parent c1231a846a
commit 48c68eafb7
1 changed files with 4 additions and 4 deletions

View File

@ -226,7 +226,7 @@ export default class StatusContent extends React.PureComponent {
}
return (
<div className={classNames} tabIndex='0' onMouseDown={this.handleMouseDown} onMouseUp={this.handleMouseUp}>
<div className={classNames} tabIndex='0' onMouseDown={this.handleMouseDown} onMouseUp={this.handleMouseUp} ref={this.setRef}>
<p
style={{ marginBottom: hidden && status.get('mentions').isEmpty() ? '0px' : null }}
>
@ -241,7 +241,6 @@ export default class StatusContent extends React.PureComponent {
<div className={`status__content__spoiler ${!hidden ? 'status__content__spoiler--visible' : ''}`}>
<div
ref={this.setRef}
style={directionStyle}
tabIndex={!hidden ? 0 : null}
dangerouslySetInnerHTML={content}
@ -261,9 +260,9 @@ export default class StatusContent extends React.PureComponent {
onMouseDown={this.handleMouseDown}
onMouseUp={this.handleMouseUp}
tabIndex='0'
ref={this.setRef}
>
<div
ref={this.setRef}
dangerouslySetInnerHTML={content}
lang={status.get('language')}
className='status__content__text'
@ -278,8 +277,9 @@ export default class StatusContent extends React.PureComponent {
className='status__content'
style={directionStyle}
tabIndex='0'
ref={this.setRef}
>
<div ref={this.setRef} className='status__content__text' dangerouslySetInnerHTML={content} lang={status.get('language')} tabIndex='0' />
<div className='status__content__text' dangerouslySetInnerHTML={content} lang={status.get('language')} tabIndex='0' />
{media}
</div>
);