FEATURE: display reply to post on mobile
This commit is contained in:
parent
0855fe5438
commit
b62aaf5a53
|
@ -11,9 +11,9 @@
|
|||
{{#if loadingReplyHistory}}
|
||||
{{i18n loading}}
|
||||
{{else}}
|
||||
<i class="fa fa-mail-forward"></i>
|
||||
<i class="fa fa-mail-forward"></i>
|
||||
{{avatar reply_to_user imageSize="tiny"}}
|
||||
{{reply_to_user.username}}
|
||||
<span>{{reply_to_user.username}}</span>
|
||||
{{/if}}
|
||||
</a>
|
||||
{{/if}}
|
||||
|
|
|
@ -185,6 +185,11 @@ Discourse.PostView = Discourse.GroupedView.extend(Ember.Evented, {
|
|||
topicController = this.get('controller'),
|
||||
origScrollTop = $(window).scrollTop();
|
||||
|
||||
if (Discourse.Mobile.mobileView) {
|
||||
Discourse.URL.routeTo(this.get('post.topic').urlForPostNumber(this.get('post.reply_to_post_number')));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
if (replyHistory.length > 0) {
|
||||
var origHeight = this.$('.embedded-posts.top').height();
|
||||
|
|
|
@ -121,7 +121,11 @@ button {
|
|||
}
|
||||
|
||||
a.reply-to-tab {
|
||||
display: none;
|
||||
position: absolute;
|
||||
z-index: 400;
|
||||
right: 80px;
|
||||
color: scale-color($primary, $lightness: 50%);
|
||||
span { display: none; }
|
||||
}
|
||||
|
||||
a.star {
|
||||
|
|
Loading…
Reference in New Issue