mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 14:52:46 +08:00
UX: fix and improve topic title badge spacing (#25441)
This commit is contained in:
parent
f2e1363f67
commit
4266b0cf7d
|
@ -14,9 +14,9 @@
|
|||
{{raw "topic-status" topic=this.topic}}
|
||||
{{topic-link this.topic}}
|
||||
{{~#if this.topic.featured_link}}
|
||||
{{topic-featured-link this.topic}}
|
||||
{{/if}}
|
||||
<TopicPostBadges
|
||||
{{topic-featured-link this.topic}}
|
||||
{{/if}}{{! intentionally inline
|
||||
to avoid whitespace}}<TopicPostBadges
|
||||
@unreadPosts={{this.topic.unread_posts}}
|
||||
@unseen={{this.topic.unseen}}
|
||||
@url={{this.topic.lastUnreadUrl}}
|
||||
|
|
|
@ -1,14 +1,12 @@
|
|||
{{#if this.displayUnreadPosts}}
|
||||
<a
|
||||
{{~#if this.displayUnreadPosts}} <a
|
||||
href={{this.url}}
|
||||
title={{i18n "topic.unread_posts" count=this.displayUnreadPosts}}
|
||||
class="badge badge-notification unread-posts"
|
||||
>{{this.displayUnreadPosts}}</a>
|
||||
{{/if}}
|
||||
{{#if this.unseen}}
|
||||
<a
|
||||
{{/if~}}
|
||||
{{~#if this.unseen}} <a
|
||||
href={{this.url}}
|
||||
title={{i18n "topic.new"}}
|
||||
class="badge badge-notification new-topic"
|
||||
>{{this.newDotText}}</a>
|
||||
{{/if}}
|
||||
{{/if~}}
|
|
@ -22,7 +22,7 @@
|
|||
{{~raw "topic-status" topic=topic}}
|
||||
{{~topic-link topic class="raw-link raw-topic-link"}}
|
||||
{{~#if topic.featured_link}}
|
||||
{{~topic-featured-link topic}}
|
||||
{{~topic-featured-link topic}}
|
||||
{{~/if}}
|
||||
{{~raw-plugin-outlet name="topic-list-after-title"}}
|
||||
{{~raw "list/unread-indicator" includeUnreadIndicator=includeUnreadIndicator
|
||||
|
|
|
@ -72,6 +72,8 @@
|
|||
|
||||
.badge-notification {
|
||||
@extend %badge;
|
||||
position: relative;
|
||||
top: -2px;
|
||||
padding: 0.21em 0.42em;
|
||||
min-width: 0.5em;
|
||||
color: var(--secondary);
|
||||
|
@ -97,6 +99,7 @@
|
|||
|
||||
&.new-topic {
|
||||
background-color: transparent;
|
||||
padding-left: 0.15em;
|
||||
}
|
||||
|
||||
&.new-topic::before {
|
||||
|
|
|
@ -68,16 +68,6 @@
|
|||
}
|
||||
}
|
||||
|
||||
.badge-notification {
|
||||
position: relative;
|
||||
top: -2px;
|
||||
|
||||
&.new-topic {
|
||||
top: -1px;
|
||||
padding-left: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
$td-posters-height: 29px; // min-height of td with avatar glow
|
||||
$td-posters-more-lh: $td-posters-height - 4;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user