forked from mirrors/catstodon
Adjust detailed_status component to match upstream
This commit is contained in:
parent
95751c93c2
commit
57ccec8b03
1 changed files with 5 additions and 4 deletions
|
@ -134,10 +134,6 @@ class DetailedStatus extends ImmutablePureComponent {
|
||||||
outerStyle.height = `${this.state.height}px`;
|
outerStyle.height = `${this.state.height}px`;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (status.get('poll')) {
|
|
||||||
media.push(<PollContainer pollId={status.get('poll')} />);
|
|
||||||
mediaIcons.push('tasks');
|
|
||||||
}
|
|
||||||
if (usingPiP) {
|
if (usingPiP) {
|
||||||
media.push(<PictureInPicturePlaceholder />);
|
media.push(<PictureInPicturePlaceholder />);
|
||||||
mediaIcons.push('video-camera');
|
mediaIcons.push('video-camera');
|
||||||
|
@ -202,6 +198,11 @@ class DetailedStatus extends ImmutablePureComponent {
|
||||||
mediaIcons.push('link');
|
mediaIcons.push('link');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (status.get('poll')) {
|
||||||
|
media.push(<PollContainer pollId={status.get('poll')} />);
|
||||||
|
mediaIcons.push('tasks');
|
||||||
|
}
|
||||||
|
|
||||||
if (status.get('application')) {
|
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>;
|
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>;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue