Skip to content

Commit

Permalink
hm.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ember-ruby committed Jul 1, 2024
1 parent b5672c3 commit 8908ab7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/javascript/flavours/blobfox/components/status_content.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -272,10 +272,10 @@ class StatusContent extends PureComponent {
} = this.props;

//let collapse = false
let autoCollapse = false
//let autoCollapse = false

//collapse = this.props.collapsed
autoCollapse = this.props.autoCollapsed
//autoCollapse = this.props.autoCollapsed

this._updateStatusLinks();

Expand All @@ -285,7 +285,9 @@ class StatusContent extends PureComponent {

// this.setState({ collapseHeight: true });

if (autoCollapse && parseInt(collapseHeight) >= 40) {
if (!this.state.autoCollapsed && parseInt(collapseHeight) < 30) {
this.setState({ collapsedHeight: 30 })
} else {
let tempCollapsedHeight = (
parseInt(collapseHeight)
)
Expand All @@ -301,8 +303,6 @@ class StatusContent extends PureComponent {
tempCollapsedHeight = 600;

this.setState({ collapsedHeight: tempCollapsedHeight })
} else {
this.setState({ collapsedHeight: 40 })
}
}

Expand Down

0 comments on commit 8908ab7

Please sign in to comment.