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 06d8981 commit 297140b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions app/javascript/flavours/blobfox/components/status.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -280,12 +280,6 @@ class Status extends ImmutablePureComponent {
autoCollapseHeight += 210;
}

let tempTootHeight = (
parseInt(node.clientHeight)
)

this.setState({ tootHeight: tempTootHeight })

if (collapse ||
autoCollapseSettings.get('all') ||
(autoCollapseSettings.get('notifications') && muted) ||
Expand All @@ -297,6 +291,12 @@ class Status extends ImmutablePureComponent {
this.setCollapsed(true);
// Hack to fix timeline jumps on second rendering when auto-collapsing
this.setState({ autoCollapsed: true });

let tempTootHeight = (
parseInt(node.clientHeight)
)

this.setState({ tootHeight: tempTootHeight })
}

// Hack to fix timeline jumps when a preview card is fetched
Expand Down Expand Up @@ -578,7 +578,7 @@ class Status extends ImmutablePureComponent {



console.log(`value ${this.state.tootHeight}`)
console.log(`value ${this.state.tootHeight}, auto ${this.state.autoCollapsed}`)

// Depending on user settings, some media are considered as parts of the
// contents (affected by CW) while other will be displayed outside of the
Expand Down

0 comments on commit 297140b

Please sign in to comment.