mirror of
https://github.com/flarum/framework.git
synced 2025-02-01 05:52:02 +08:00
Fix composer on mobile, scroll to new reply
This commit is contained in:
parent
ac2116deea
commit
82a2f95056
|
@ -46,6 +46,7 @@ export default Ember.Controller.extend(Ember.Evented, UseComposerMixin, {
|
||||||
// stream.
|
// stream.
|
||||||
if (discussion == controller.get('model') && stream) {
|
if (discussion == controller.get('model') && stream) {
|
||||||
stream.addPostToEnd(post);
|
stream.addPostToEnd(post);
|
||||||
|
controller.transitionToRoute({queryParams: {start: post.get('number')}});
|
||||||
} else {
|
} else {
|
||||||
// Otherwise, we'll create an alert message to inform the user
|
// Otherwise, we'll create an alert message to inform the user
|
||||||
// that their reply has been posted, containing a button which
|
// that their reply has been posted, containing a button which
|
||||||
|
|
|
@ -59,6 +59,7 @@
|
||||||
}
|
}
|
||||||
.composer {
|
.composer {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
|
@ -71,7 +72,6 @@
|
||||||
content: " ";
|
content: " ";
|
||||||
.toolbar();
|
.toolbar();
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
.transition(opacity 0.5s);
|
|
||||||
|
|
||||||
.visible& {
|
.visible& {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user