Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
Ember-ruby committed Jun 30, 2024
1 parent d4df8e6 commit 120d17d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion app/javascript/flavours/blobfox/components/status.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -862,7 +862,6 @@ class Status extends ImmutablePureComponent {
mediaIcons={contentMediaIcons}
expanded={isExpanded}
collapsed={isCollapsed}
height={collapsedHeight}
collapseHeight={settings.getIn(['collapsed', 'auto', 'height'])}
onExpandedToggle={this.handleExpandedToggle}
onTranslate={this.handleTranslate}
Expand Down
4 changes: 4 additions & 0 deletions app/javascript/flavours/blobfox/components/status_content.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,10 @@ class StatusContent extends PureComponent {
parseInt(collapseHeight)
)

if (collapsedHeight <= 20) (
collapsedHeight = 20
)

if (status.get('media_attachments').size && !muted) {
collapsedHeight += 210;
}
Expand Down

0 comments on commit 120d17d

Please sign in to comment.