Move CW field just above main textarea

This commit is contained in:
Thibaut Girka authored and ThibG committed 2018-07-28 23:25:42 +02:00
1 parent 358e3a4c32
commit 28a59e4e80
2 files changed
+9 -9

No files matched your search

@@ -318,13 +318,6 @@ class Composer extends React.Component {
return (
<div className='composer'>
<ComposerSpoiler
hidden={!spoiler}
intl={intl}
onChange={handleChangeSpoiler}
onSubmit={handleSubmit}
text={spoilerText}
/>
{privacy === 'direct' ? <ComposerDirectWarning /> : null}
{privacy === 'private' && amUnlocked ? <ComposerWarning /> : null}
{privacy !== 'public' && APPROX_HASHTAG_RE.test(text) ? <ComposerHashtagWarning /> : null}
@@ -335,6 +328,13 @@ class Composer extends React.Component {
onCancel={onCancelReply}
/>
)}
<ComposerSpoiler
hidden={!spoiler}
intl={intl}
onChange={handleChangeSpoiler}
onSubmit={handleSubmit}
text={spoilerText}
/>
<ComposerTextarea
advancedOptions={advancedOptions}
autoFocus={!showSearch && !isMobile(window.innerWidth, layout)}