Skip to content

Commit

Permalink
aaa
Browse files Browse the repository at this point in the history
  • Loading branch information
Ember-ruby committed Jun 30, 2024
1 parent f5acbbd commit 47e1b2f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/javascript/flavours/blobfox/components/status.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,7 @@ class Status extends ImmutablePureComponent {
mediaIcons={contentMediaIcons}
expanded={isExpanded}
collapsed={isCollapsed}
toggleCollapse={this.handleHotkeyCollapse}
collapseHeight={settings.getIn(['collapsed', 'auto', 'height'])}
onExpandedToggle={this.handleExpandedToggle}
onTranslate={this.handleTranslate}
parseClick={parseClick}
Expand Down
11 changes: 5 additions & 6 deletions app/javascript/flavours/blobfox/components/status_content.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ class StatusContent extends PureComponent {

state = {
hidden: true,
collapsed: false,
};

_updateStatusLinks () {
Expand Down Expand Up @@ -333,16 +334,16 @@ class StatusContent extends PureComponent {
media,
extraMedia,
mediaIcons,
collapsed,
collapseHeight,
muted,
settings,
parseClick,
disabled,
tagLinks,
rewriteMentions,
intl,
statusContent,
} = this.props;
const { collapsed } = this.state;

const hidden = this.props.onExpandedToggle ? !this.props.expanded : this.state.hidden;
const contentLocale = intl.locale.replace(/[_-].*/, '');
Expand All @@ -361,12 +362,10 @@ class StatusContent extends PureComponent {
<TranslateButton onClick={this.handleTranslate} translation={status.get('translation')} />
);

let collapsedHeight = null;

const autoCollapseSettings = settings.getIn(['collapsed', 'auto']);
let collapsedHeight = 0;

collapsedHeight = (
parseInt(autoCollapseSettings.get('height'))
parseInt(collapseHeight)
)

if (status.get('media_attachments').size && !muted) {
Expand Down

0 comments on commit 47e1b2f

Please sign in to comment.