Fix the badge widows on mobile (#5777)

This commit is contained in:
Michael Howell 2018-04-23 11:04:47 -07:00 committed by Kris
parent f812f5cd1c
commit b00a7b0bf7
2 changed files with 12 additions and 11 deletions

View File

@ -8,17 +8,17 @@
<div> <div>
{{/unless~}} {{/unless~}}
<div class='main-link'> <div class='main-link'>
{{raw "topic-status" topic=topic}} {{~raw "topic-status" topic=topic~}}
{{topic-link topic}} {{~topic-link topic~}}
{{#if topic.featured_link}} {{~#if topic.featured_link~}}
{{topic-featured-link topic}} {{~topic-featured-link topic~}}
{{/if}} {{~/if~}}
{{#if topic.unseen}} {{~#if topic.unseen~}}
<span class="badge-notification new-topic"></span> &nbsp;<span class="badge-notification new-topic"></span>
{{/if}} {{~/if~}}
{{~#if expandPinned}} {{~#if expandPinned~}}
{{raw "list/topic-excerpt" topic=topic}} {{~raw "list/topic-excerpt" topic=topic~}}
{{/if~}} {{~/if~}}
</div> </div>
<div class='pull-right'> <div class='pull-right'>

View File

@ -85,6 +85,7 @@
.badge-notification, .category-topic-link td.num .badge-notification { .badge-notification, .category-topic-link td.num .badge-notification {
position: relative; position: relative;
display: inline;
top: -1px; top: -1px;
font-size: $font-down-1; font-size: $font-down-1;
padding: 4px 6px 3px 6px; padding: 4px 6px 3px 6px;