Skip to content

Commit

Permalink
h
Browse files Browse the repository at this point in the history
  • Loading branch information
Ember-ruby committed Jul 1, 2024
1 parent b3406b4 commit f23cdc1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions app/javascript/flavours/blobfox/components/status_content.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,6 @@ class StatusContent extends PureComponent {
};

componentDidMount () {
const { node } = this.divNode;
const { clientHeight } = this.divNode;
const {
status,
Expand All @@ -288,7 +287,7 @@ class StatusContent extends PureComponent {

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

if (!autoCollapsed && parseInt(collapseHeight) < 30) {
if (!autoCollapsed || parseInt(collapseHeight) < 30) {
this.setState({ collapsedHeight: 30 })
} else {
let tempCollapsedHeight = (
Expand All @@ -297,9 +296,8 @@ class StatusContent extends PureComponent {
if (tempCollapsedHeight > clientHeight) (
tempCollapsedHeight = clientHeight
)
if (status.get('media_attachments').size && !muted) {
tempCollapsedHeight += 210;
}

tempCollapsedHeight = clientHeight;
this.setState({ collapsedHeight: tempCollapsedHeight })
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@
}

.status__content {
height: 40px;
height: 30px;
overflow: hidden;
text-overflow: ellipsis;

Expand Down

0 comments on commit f23cdc1

Please sign in to comment.