sforkowany z mirror/soapbox
Merge branch 'patch-1' into 'develop'
Update status_content.js Fixes #473 Closes #473 See merge request soapbox-pub/soapbox-fe!348renovate/react-overlays-4.x
commit
72217c9100
|
@ -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();
|
||||||
|
|
Ładowanie…
Reference in New Issue