Browse Source

Move CW field just above main textarea

closed-social-glitch-2
Thibaut Girka 6 years ago
committed by ThibG
parent
commit
28a59e4e80
2 changed files with 9 additions and 9 deletions
  1. +7
    -7
      app/javascript/flavours/glitch/features/composer/index.js
  2. +2
    -2
      app/javascript/flavours/glitch/styles/components/composer.scss

+ 7
- 7
app/javascript/flavours/glitch/features/composer/index.js View File

@ -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)}

+ 2
- 2
app/javascript/flavours/glitch/styles/components/composer.scss View File

@ -58,8 +58,8 @@
}
.composer--reply {
margin: 0 0 -2px;
border-radius: 4px 4px 0 0;
margin: 0 0 10px;
border-radius: 4px;
padding: 10px;
background: $ui-primary-color;

Loading…
Cancel
Save