mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 06:49:14 +08:00
show a dot and reply count for new topics on mobile
This commit is contained in:
parent
8bcb22f52d
commit
3ebad3e294
|
@ -1,5 +1,8 @@
|
|||
{{#if view.showBadges}}
|
||||
{{raw "topic-post-badges" unread=topic.unread newPosts=topic.displayNewPosts unseen=topic.unseen url=topic.lastUnreadUrl}}
|
||||
{{else}}
|
||||
{{#if topic.unseen}}
|
||||
<span class="badge-notification new-topic"></span>
|
||||
{{/if}}
|
||||
{{raw "list/posts-count-column" topic=topic tagName="div"}}
|
||||
{{/if}}
|
|
@ -1,4 +1,4 @@
|
|||
export default Ember.Object.extend({
|
||||
postCountsPresent: Ember.computed.or('topic.unread', 'topic.displayNewPosts', 'topic.unseen'),
|
||||
postCountsPresent: Ember.computed.or('topic.unread', 'topic.displayNewPosts'),
|
||||
showBadges: Ember.computed.and('postBadgesEnabled', 'postCountsPresent')
|
||||
});
|
||||
|
|
|
@ -85,11 +85,11 @@
|
|||
i {color: $secondary;}
|
||||
|
||||
&.new-topic::before {
|
||||
content: none;
|
||||
margin-right: 0;
|
||||
}
|
||||
&.new-topic {
|
||||
padding-right: 0;
|
||||
top: -3px;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -392,6 +392,7 @@ td .main-link {
|
|||
}
|
||||
.topic-list {
|
||||
.posts-map {
|
||||
display: inline;
|
||||
font-size: 1.071em;
|
||||
padding-top: 2px;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user