mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06: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}}
|
{{#if view.showBadges}}
|
||||||
{{raw "topic-post-badges" unread=topic.unread newPosts=topic.displayNewPosts unseen=topic.unseen url=topic.lastUnreadUrl}}
|
{{raw "topic-post-badges" unread=topic.unread newPosts=topic.displayNewPosts unseen=topic.unseen url=topic.lastUnreadUrl}}
|
||||||
{{else}}
|
{{else}}
|
||||||
|
{{#if topic.unseen}}
|
||||||
|
<span class="badge-notification new-topic"></span>
|
||||||
|
{{/if}}
|
||||||
{{raw "list/posts-count-column" topic=topic tagName="div"}}
|
{{raw "list/posts-count-column" topic=topic tagName="div"}}
|
||||||
{{/if}}
|
{{/if}}
|
@ -1,4 +1,4 @@
|
|||||||
export default Ember.Object.extend({
|
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')
|
showBadges: Ember.computed.and('postBadgesEnabled', 'postCountsPresent')
|
||||||
});
|
});
|
||||||
|
@ -85,11 +85,11 @@
|
|||||||
i {color: $secondary;}
|
i {color: $secondary;}
|
||||||
|
|
||||||
&.new-topic::before {
|
&.new-topic::before {
|
||||||
content: none;
|
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
}
|
}
|
||||||
&.new-topic {
|
&.new-topic {
|
||||||
padding-right: 0;
|
padding-right: 0;
|
||||||
|
top: -3px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -392,6 +392,7 @@ td .main-link {
|
|||||||
}
|
}
|
||||||
.topic-list {
|
.topic-list {
|
||||||
.posts-map {
|
.posts-map {
|
||||||
|
display: inline;
|
||||||
font-size: 1.071em;
|
font-size: 1.071em;
|
||||||
padding-top: 2px;
|
padding-top: 2px;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user