mirror of
https://github.com/flarum/framework.git
synced 2024-12-11 21:43:38 +08:00
Always show composer header. closes flarum/core#112
This commit is contained in:
parent
5c3e3abf70
commit
9a04603587
|
@ -25,12 +25,10 @@ export default class ComposerBody extends Component {
|
|||
view(className) {
|
||||
this.editor.props.disabled = this.loading() || !this.ready();
|
||||
|
||||
var headerItems = this.headerItems().toArray();
|
||||
|
||||
return m('div', {className, config: this.onload.bind(this)}, [
|
||||
avatar(this.props.user, {className: 'composer-avatar'}),
|
||||
m('div.composer-body', [
|
||||
headerItems.length ? m('ul.composer-header', listItems(headerItems)) : '',
|
||||
m('ul.composer-header', listItems(this.headerItems().toArray())),
|
||||
m('div.composer-editor', this.editor.view())
|
||||
]),
|
||||
LoadingIndicator.component({className: 'composer-loading'+(this.loading() ? ' active' : '')})
|
||||
|
|
|
@ -21,15 +21,10 @@ export default class ReplyComposer extends ComposerBody {
|
|||
headerItems() {
|
||||
var items = new ItemList();
|
||||
|
||||
if (app.composer.position() === Composer.PositionEnum.MINIMIZED ||
|
||||
// https://github.com/babel/babel/issues/1150
|
||||
!app.current.discussion ||
|
||||
app.current.discussion() !== this.props.discussion) {
|
||||
items.add('title', m('h3', [
|
||||
icon('reply'), ' ',
|
||||
m('a', {href: app.route.discussion(this.props.discussion), config: m.route}, this.props.discussion.title())
|
||||
]));
|
||||
}
|
||||
items.add('title', m('h3', [
|
||||
icon('reply'), ' ',
|
||||
m('a', {href: app.route.discussion(this.props.discussion), config: m.route}, this.props.discussion.title())
|
||||
]));
|
||||
|
||||
return items;
|
||||
}
|
||||
|
|
|
@ -41,10 +41,12 @@
|
|||
|
||||
&, & input, & a {
|
||||
color: @fl-secondary-color;
|
||||
font-size: 16px;
|
||||
font-size: 14px;
|
||||
font-weight: normal;
|
||||
}
|
||||
& input {
|
||||
font-size: 16px;
|
||||
|
||||
&, &[disabled], &:focus {
|
||||
background: none;
|
||||
border: 0;
|
||||
|
|
Loading…
Reference in New Issue
Block a user