Skip to content

Commit

Permalink
weh
Browse files Browse the repository at this point in the history
  • Loading branch information
Ember-ruby committed Jul 1, 2024
1 parent fa40585 commit 3c2f023
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/javascript/flavours/blobfox/components/status_content.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ class StatusContent extends PureComponent {
let collapse = false
let autoCollapse = false

//const { collapsed } = this.props;
const { collapsed } = this.props;
//const { collapsedHeight } = this.props;

collapse = this.props.collapsed
Expand Down Expand Up @@ -523,7 +523,7 @@ class StatusContent extends PureComponent {
console.log(`height? ${collapsedHeight}`)

return (
<div className={classNames} tabIndex={0} onMouseDown={this.handleMouseDown} onMouseUp={this.handleMouseUp} ref={this.handleRef} style={collapse ? { height: `${this.state.collapsedHeight}px` } : null}>
<div className={classNames} tabIndex={0} onMouseDown={this.handleMouseDown} onMouseUp={this.handleMouseUp} ref={this.handleRef} style={collapsed ? { height: `${this.state.collapsedHeight}px` } : null}>
<p
style={{ marginBottom: hidden && status.get('mentions').isEmpty() ? '0px' : null }}
>
Expand Down Expand Up @@ -562,7 +562,7 @@ class StatusContent extends PureComponent {
onMouseUp={this.handleMouseUp}
tabIndex={0}
ref={this.handleRef}
style={collapse ? { height: `${this.state.collapsedHeight}px` } : null}
style={collapsed ? { height: `${this.state.collapsedHeight}px` } : null}
>
<div
ref={this.setContentsRef}
Expand All @@ -585,7 +585,7 @@ class StatusContent extends PureComponent {
className='status__content'
tabIndex={0}
ref={this.handleRef}
style={collapse ? { height: `${this.state.collapsedHeight}px` } : null}
style={collapsed ? { height: `${this.state.collapsedHeight}px` } : null}
>
<div
ref={this.setContentsRef}
Expand Down

0 comments on commit 3c2f023

Please sign in to comment.