Fix animate on hover in poll options without CW (#11404)
parent
c4e5f4698c
commit
13b0943e36
|
@ -234,46 +234,23 @@ export default class StatusContent extends React.PureComponent {
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
} else if (this.props.onClick) {
|
} else if (this.props.onClick) {
|
||||||
const output = [
|
return (
|
||||||
<div
|
<div className={classNames} ref={this.setRef} tabIndex='0' style={directionStyle} onMouseDown={this.handleMouseDown} onMouseUp={this.handleMouseUp}>
|
||||||
ref={this.setRef}
|
<div className='status__content__text status__content__text--visible' style={directionStyle} dangerouslySetInnerHTML={content} lang={status.get('language')} />
|
||||||
tabIndex='0'
|
|
||||||
key='content'
|
|
||||||
className={classNames}
|
|
||||||
style={directionStyle}
|
|
||||||
dangerouslySetInnerHTML={content}
|
|
||||||
lang={status.get('language')}
|
|
||||||
onMouseDown={this.handleMouseDown}
|
|
||||||
onMouseUp={this.handleMouseUp}
|
|
||||||
/>,
|
|
||||||
];
|
|
||||||
|
|
||||||
if (this.state.collapsed) {
|
{!!this.state.collapsed && readMoreButton}
|
||||||
output.push(readMoreButton);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (status.get('poll')) {
|
{!!status.get('poll') && <PollContainer pollId={status.get('poll')} />}
|
||||||
output.push(<PollContainer pollId={status.get('poll')} />);
|
</div>
|
||||||
}
|
);
|
||||||
|
|
||||||
return output;
|
|
||||||
} else {
|
} else {
|
||||||
const output = [
|
return (
|
||||||
<div
|
<div className={classNames} ref={this.setRef} tabIndex='0' style={directionStyle}>
|
||||||
tabIndex='0'
|
<div className='status__content__text status__content__text--visible' style={directionStyle} dangerouslySetInnerHTML={content} lang={status.get('language')} />
|
||||||
ref={this.setRef}
|
|
||||||
className='status__content'
|
|
||||||
style={directionStyle}
|
|
||||||
dangerouslySetInnerHTML={content}
|
|
||||||
lang={status.get('language')}
|
|
||||||
/>,
|
|
||||||
];
|
|
||||||
|
|
||||||
if (status.get('poll')) {
|
{!!status.get('poll') && <PollContainer pollId={status.get('poll')} />}
|
||||||
output.push(<PollContainer pollId={status.get('poll')} />);
|
</div>
|
||||||
}
|
);
|
||||||
|
|
||||||
return output;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue