From 7a8823276f0432b945aa2b8acb6720819fcad426 Mon Sep 17 00:00:00 2001 From: Ember Date: Sun, 30 Jun 2024 22:03:50 +1000 Subject: [PATCH] ? --- .../flavours/blobfox/components/status.jsx | 11 +---------- .../blobfox/components/status_content.jsx | 16 +++++++++++++++- 2 files changed, 16 insertions(+), 11 deletions(-) diff --git a/app/javascript/flavours/blobfox/components/status.jsx b/app/javascript/flavours/blobfox/components/status.jsx index abc5e8eb016d25..dd01bd923bcedc 100644 --- a/app/javascript/flavours/blobfox/components/status.jsx +++ b/app/javascript/flavours/blobfox/components/status.jsx @@ -553,7 +553,6 @@ class Status extends ImmutablePureComponent { } = this.props; const { isCollapsed } = this.state; let background = null; - let collapsedHeight = null; let attachments = null; // Depending on user settings, some media are considered as parts of the @@ -637,14 +636,6 @@ class Status extends ImmutablePureComponent { background = status.getIn(['account', 'header']); } - collapsedHeight = ( - settings.getIn(['collapsed', 'auto', 'height']) - ) - - if (status.get('media_attachments').size && !muted) { - collapsedHeight += 210; - } - // This handles our media attachments. // If a media file is of unknwon type or if the status is muted // (notification), we show a list of links instead of embedded media. @@ -855,11 +846,11 @@ class Status extends ImmutablePureComponent { ); + let collapsedHeight = null; + + collapsedHeight = ( + settings.getIn(['collapsed', 'auto', 'height']) + ) + + if (status.get('media_attachments').size && !muted) { + collapsedHeight += 210; + } + if (status.get('spoiler_text').length > 0) { let mentionsPlaceholder = ''; @@ -408,7 +420,7 @@ class StatusContent extends PureComponent { } return ( -
+