|
|
@ -66,15 +66,16 @@ export default class StatusContent extends React.PureComponent {
|
|
|
|
if (!node) {
|
|
|
|
if (!node) {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (
|
|
|
|
if (
|
|
|
|
this.props.collapsable
|
|
|
|
this.props.collapsable
|
|
|
|
&& this.props.onClick
|
|
|
|
&& this.props.onClick
|
|
|
|
&& this.state.collapsed === null
|
|
|
|
&& this.state.collapsed === null
|
|
|
|
&& node.clientHeight > MAX_HEIGHT
|
|
|
|
|
|
|
|
&& this.props.status.get('spoiler_text').length === 0
|
|
|
|
&& this.props.status.get('spoiler_text').length === 0
|
|
|
|
) {
|
|
|
|
) {
|
|
|
|
this.setState({ collapsed: true });
|
|
|
|
if (node.clientHeight > MAX_HEIGHT){
|
|
|
|
|
|
|
|
this.setState({ collapsed: true });
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|