From 81683acf3d64a2f19e56ae3b5a704ad4ff1cced2 Mon Sep 17 00:00:00 2001 From: Ember Date: Mon, 1 Jul 2024 00:08:54 +1000 Subject: [PATCH] h --- .../flavours/blobfox/components/status.jsx | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/app/javascript/flavours/blobfox/components/status.jsx b/app/javascript/flavours/blobfox/components/status.jsx index b3c6a5c5c51b5c..2e1b30973365ba 100644 --- a/app/javascript/flavours/blobfox/components/status.jsx +++ b/app/javascript/flavours/blobfox/components/status.jsx @@ -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. @@ -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}