Skip to content

Commit

Permalink
modified: app/javascript/flavours/blobfox/components/status.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
Ember-ruby committed Jul 1, 2024
1 parent 0b3c2e9 commit 6eafd86
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/javascript/flavours/blobfox/components/status.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,11 @@ class Status extends ImmutablePureComponent {
) {
this.setCollapsed(true);
// Hack to fix timeline jumps on second rendering when auto-collapsing
this.setState({ autoCollapsed: true, tootHeight: node.clientHeight});
this.setState({ autoCollapsed: true });
}

this.setState ({ tootHeight: node.clientHeight });

// Hack to fix timeline jumps when a preview card is fetched
this.setState({
showCard: !this.props.muted && !this.props.hidden && this.props.status && this.props.status.get('card') && this.props.settings.get('inline_preview_cards'),
Expand Down

0 comments on commit 6eafd86

Please sign in to comment.