Drastically improve how the composer looks and behaves

- New, cleaner, more prominent look
- Make it statically positioned down the bottom on mobile, so you can
still scroll up to look at posts
- Fix some bugs with animation, jumping between views
This commit is contained in:
Toby Zerner
2015-05-18 10:40:14 +09:30
parent e6362a222e
commit aa2bc23039
7 changed files with 83 additions and 73 deletions

View File

@ -25,7 +25,7 @@ export default class TextEditor extends Component {
disabled: !!this.props.disabled,
value: this.value()
}),
m('ul.text-editor-controls.fade', listItems(this.controlItems().toArray()))
m('ul.text-editor-controls', listItems(this.controlItems().toArray()))
]);
}
@ -43,7 +43,6 @@ export default class TextEditor extends Component {
label: this.props.submitLabel,
icon: 'check',
className: 'btn btn-primary',
wrapperClass: 'primary-control',
onclick: this.onsubmit.bind(this)
})
);
@ -76,7 +75,6 @@ export default class TextEditor extends Component {
oninput(value) {
this.value(value);
this.props.onchange(this.value());
this.$('.text-editor-controls').toggleClass('in', !!value);
m.redraw.strategy('none');
}