Skip to content

Commit

Permalink
h
Browse files Browse the repository at this point in the history
  • Loading branch information
Ember-ruby committed Jun 30, 2024
1 parent 5b13198 commit 81683ac
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions app/javascript/flavours/blobfox/components/status.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,17 @@ class Status extends ImmutablePureComponent {
let background = null;
let attachments = null;

let collapsedHeight = null;
if (isCollapsed) (
collapsedHeight = (
parseInt(settings.getIn(['collapsed', 'auto', 'height']))
)

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

// Depending on user settings, some media are considered as parts of the
// contents (affected by CW) while other will be displayed outside of the
// CW.
Expand Down Expand Up @@ -851,6 +862,7 @@ 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

0 comments on commit 81683ac

Please sign in to comment.