mirror of
https://github.com/flarum/core.git
synced 2025-08-09 18:07:02 +02:00
chore: move discussion list items controls to the end
This commit is contained in:
@@ -76,15 +76,15 @@ export default class DiscussionListItem<CustomAttrs extends IDiscussionListItemA
|
|||||||
viewItems(): ItemList<Mithril.Children> {
|
viewItems(): ItemList<Mithril.Children> {
|
||||||
const items = new ItemList<Mithril.Children>();
|
const items = new ItemList<Mithril.Children>();
|
||||||
|
|
||||||
|
items.add('slidableUnderneath', this.slidableUnderneathView(), 90);
|
||||||
|
items.add('content', this.contentView(), 80);
|
||||||
|
|
||||||
const controls = DiscussionControls.controls(this.attrs.discussion, this).toArray();
|
const controls = DiscussionControls.controls(this.attrs.discussion, this).toArray();
|
||||||
|
|
||||||
if (controls.length) {
|
if (controls.length) {
|
||||||
items.add('controls', this.controlsView(controls), 100);
|
items.add('controls', this.controlsView(controls), 70);
|
||||||
}
|
}
|
||||||
|
|
||||||
items.add('slidableUnderneath', this.slidableUnderneathView(), 90);
|
|
||||||
items.add('content', this.contentView(), 80);
|
|
||||||
|
|
||||||
return items;
|
return items;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user