Skip to content

Commit

Permalink
yes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ember-ruby committed Jul 1, 2024
1 parent 6eafd86 commit ec86c91
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/javascript/flavours/blobfox/components/status_content.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ class StatusContent extends PureComponent {

if (!autoCollapsed || parseInt(collapseHeight) < 30) {
this.setState({ collapsedHeight: 30 })
console.log(`false, autocollapsed ${autoCollapsed}, collapseHeight ${collapseHeight}, tootHeight ${tootHeight}`)
} else {
let tempCollapsedHeight = (
parseInt(collapseHeight)
Expand All @@ -299,6 +300,8 @@ class StatusContent extends PureComponent {
tempCollapsedHeight - (tootHeight - clientHeight)
)

console.log(`true autocollapsed ${autoCollapsed}, collapseHeight ${collapseHeight}, tootHeight ${tootHeight}`)

tempCollapsedHeight = clientHeight;
this.setState({ collapsedHeight: tempCollapsedHeight })
}
Expand Down

0 comments on commit ec86c91

Please sign in to comment.