mirror of
https://github.com/discourse/discourse.git
synced 2026-08-07 19:55:17 -05:00
show a dot and reply count for new topics on mobile
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user