Update status_content.js Fixes #473

renovate/react-overlays-4.x
Curtis 2020-10-11 00:21:11 +00:00
rodzic 0a4485e244
commit 9768c18c72
1 zmienionych plików z 4 dodań i 3 usunięć

Wyświetl plik

@ -71,12 +71,13 @@ export default class StatusContent extends React.PureComponent {
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
) { ) {
if (node.clientHeight > MAX_HEIGHT){
this.setState({ collapsed: true }); this.setState({ collapsed: true });
} }
} }
}
componentDidMount() { componentDidMount() {
this.setCollapse(); this.setCollapse();