diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-04-20 21:29:31 +0200 |
---|---|---|
committer | Claire <claire.github-309c@sitedethib.com> | 2022-04-20 22:07:13 +0200 |
commit | bb12af7250c9368905bae7d91c6ff0b06f3aa400 (patch) | |
tree | 8a6c39434201db28a69d4d2b8d46f2309081da9f /app/javascript/flavours/glitch/features/status | |
parent | 5c808ee0decac075b105e1f3a36933ce38d76255 (diff) |
Swap position of media attachments and polls
Diffstat (limited to 'app/javascript/flavours/glitch/features/status')
-rw-r--r-- | app/javascript/flavours/glitch/features/status/components/detailed_status.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/app/javascript/flavours/glitch/features/status/components/detailed_status.js b/app/javascript/flavours/glitch/features/status/components/detailed_status.js index 528d2eb73..f4e6c24c5 100644 --- a/app/javascript/flavours/glitch/features/status/components/detailed_status.js +++ b/app/javascript/flavours/glitch/features/status/components/detailed_status.js @@ -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>; } |