Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ember-ruby committed Jul 1, 2024
1 parent 3297172 commit e6f5e08
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions app/javascript/flavours/blobfox/components/status_content.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ class StatusContent extends PureComponent {
hidden: true,
collapsed: false,
autoCollapsed: false,
collapsedHeight: 0,
collapsedHeight: null,
clientHeight: null,
};

Expand Down Expand Up @@ -281,12 +281,12 @@ class StatusContent extends PureComponent {

if (node === undefined) return;

let tempCollapsedHeight = 0;
//let tempCollapsedHeight = 0;

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

if (this.props.collapsed && !this.props.autoCollapsed && collapseHeight >= 40) {
tempCollapsedHeight = (
if (this.props.autoCollapsed && collapseHeight >= 40) {
let tempCollapsedHeight = (
parseInt(collapseHeight)
)

Expand All @@ -300,8 +300,8 @@ class StatusContent extends PureComponent {

tempCollapsedHeight = 600;

this.setState({ collapsedHeight: parseInt(tempCollapsedHeight) })
} else if (this.props.autoCollapsed || collapseHeight < 40) {
this.setState({ collapsedHeight: tempCollapsedHeight })
} else if (!this.props.autoCollapsed || collapseHeight < 40) {
this.setState({ collapsedHeight: 40 })
}
}
Expand Down

0 comments on commit e6f5e08

Please sign in to comment.