Swap position of media attachments and polls
This commit is contained in:
parent
5c808ee0de
commit
bb12af7250
2 changed files with 11 additions and 8 deletions
|
@ -581,10 +581,7 @@ class Status extends ImmutablePureComponent {
|
||||||
// backgrounds for collapsed statuses are enabled.
|
// backgrounds for collapsed statuses are enabled.
|
||||||
|
|
||||||
attachments = status.get('media_attachments');
|
attachments = status.get('media_attachments');
|
||||||
if (status.get('poll')) {
|
|
||||||
media.push(<PollContainer pollId={status.get('poll')} />);
|
|
||||||
mediaIcons.push('tasks');
|
|
||||||
}
|
|
||||||
if (usingPiP) {
|
if (usingPiP) {
|
||||||
media.push(<PictureInPicturePlaceholder width={this.props.cachedMediaWidth} />);
|
media.push(<PictureInPicturePlaceholder width={this.props.cachedMediaWidth} />);
|
||||||
mediaIcons.push('video-camera');
|
mediaIcons.push('video-camera');
|
||||||
|
@ -684,6 +681,11 @@ class Status extends ImmutablePureComponent {
|
||||||
mediaIcons.push('link');
|
mediaIcons.push('link');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (status.get('poll')) {
|
||||||
|
media.push(<PollContainer pollId={status.get('poll')} />);
|
||||||
|
mediaIcons.push('tasks');
|
||||||
|
}
|
||||||
|
|
||||||
// Here we prepare extra data-* attributes for CSS selectors.
|
// Here we prepare extra data-* attributes for CSS selectors.
|
||||||
// Users can use those for theming, hiding avatars etc via UserStyle
|
// Users can use those for theming, hiding avatars etc via UserStyle
|
||||||
const selectorAttribs = {
|
const selectorAttribs = {
|
||||||
|
|
|
@ -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