|
|
@ -65,7 +65,7 @@ class StatusContent extends React.PureComponent { |
|
|
|
onExpandedToggle: PropTypes.func, |
|
|
|
onExpandedToggle: PropTypes.func, |
|
|
|
onTranslate: PropTypes.func, |
|
|
|
onTranslate: PropTypes.func, |
|
|
|
onClick: PropTypes.func, |
|
|
|
onClick: PropTypes.func, |
|
|
|
collapsable: PropTypes.bool, |
|
|
|
collapsible: PropTypes.bool, |
|
|
|
onCollapsedToggle: PropTypes.func, |
|
|
|
onCollapsedToggle: PropTypes.func, |
|
|
|
languages: ImmutablePropTypes.map, |
|
|
|
languages: ImmutablePropTypes.map, |
|
|
|
intl: PropTypes.object, |
|
|
|
intl: PropTypes.object, |
|
|
@ -112,10 +112,10 @@ class StatusContent extends React.PureComponent { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (status.get('collapsed', null) === null && onCollapsedToggle) { |
|
|
|
if (status.get('collapsed', null) === null && onCollapsedToggle) { |
|
|
|
const { collapsable, onClick } = this.props; |
|
|
|
const { collapsible, onClick } = this.props; |
|
|
|
|
|
|
|
|
|
|
|
const collapsed = |
|
|
|
const collapsed = |
|
|
|
collapsable |
|
|
|
collapsible |
|
|
|
&& onClick |
|
|
|
&& onClick |
|
|
|
&& node.clientHeight > MAX_HEIGHT |
|
|
|
&& node.clientHeight > MAX_HEIGHT |
|
|
|
&& status.get('spoiler_text').length === 0; |
|
|
|
&& status.get('spoiler_text').length === 0; |
|
|
|