Skip to content

Commit

Permalink
Redesign tootbox (#5919)
Browse files Browse the repository at this point in the history
* Redesign tootbox

* Move counter into compose-form__buttons-wrapper

Change font and remove shadow
Refactor sass codes of compose-form
  • Loading branch information
lynlynlynx authored and Gargron committed Dec 13, 2017
1 parent fef6625 commit 0aeec03
Show file tree
Hide file tree
Showing 2 changed files with 236 additions and 263 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -199,11 +199,11 @@ export default class ComposeForm extends ImmutablePureComponent {
<SensitiveButtonContainer />
<SpoilerButtonContainer />
</div>
<div className='character-counter__wrapper'><CharacterCounter max={500} text={text} /></div>
</div>

<div className='compose-form__publish'>
<div className='character-counter__wrapper'><CharacterCounter max={500} text={text} /></div>
<div className='compose-form__publish-button-wrapper'><Button text={publishText} onClick={this.handleSubmit} disabled={disabled || this.props.is_uploading || length(text) > 500 || (text.length !== 0 && text.trim().length === 0)} block /></div>
</div>
<div className='compose-form__publish'>
<div className='compose-form__publish-button-wrapper'><Button text={publishText} onClick={this.handleSubmit} disabled={disabled || this.props.is_uploading || length(text) > 500 || (text.length !== 0 && text.trim().length === 0)} block /></div>
</div>
</div>
);
Expand Down

0 comments on commit 0aeec03

Please sign in to comment.