Adjust detailed_status component to match upstream

This commit is contained in:
Jeremy Kescher 2022-04-27 23:25:28 +02:00
parent 95751c93c2
commit 57ccec8b03
No known key found for this signature in database
GPG key ID: 48DFE4BB15BA5940

View file

@ -134,10 +134,6 @@ class DetailedStatus extends ImmutablePureComponent {
outerStyle.height = `${this.state.height}px`;
}
if (status.get('poll')) {
media.push(<PollContainer pollId={status.get('poll')} />);
mediaIcons.push('tasks');
}
if (usingPiP) {
media.push(<PictureInPicturePlaceholder />);
mediaIcons.push('video-camera');
@ -202,6 +198,11 @@ class DetailedStatus extends ImmutablePureComponent {
mediaIcons.push('link');
}
if (status.get('poll')) {
media.push(<PollContainer pollId={status.get('poll')} />);
mediaIcons.push('tasks');
}
if (status.get('application')) {
applicationLink = <React.Fragment> · <a className='detailed-status__application' href={status.getIn(['application', 'website'])} target='_blank' rel='noopener noreferrer'>{status.getIn(['application', 'name'])}</a></React.Fragment>;
}