Skip to content

Commit c079679

Browse files
authored
UX: top contributors: fix wrapping with long numbers and alignment (#79)
1 parent 22facfe commit c079679

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

desktop/desktop.scss

+1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
.top-contributors--user-likes {
4949
grid-area: right;
5050
justify-self: end;
51+
white-space: nowrap;
5152
}
5253

5354
// Recent replies

javascripts/discourse/components/top-contributors.hbs

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@
2020
</span>
2121
<span class={{concat "top-contributors--user-likes order--" this.order}}>
2222
{{#if (eq this.order "likes_received")}}
23+
{{number item.likes_received}}
2324
{{d-icon "heart"}}
24-
{{item.likes_received}}
2525
{{else}}
26+
{{number item.likes_given}}
2627
{{d-icon "heart"}}
27-
{{item.likes_given}}
2828
{{/if}}
2929
</span>
3030
</div>
@@ -33,4 +33,4 @@
3333

3434
<a class="top-contributors--view-all" href={{this.viewAllUrl}}>
3535
{{theme-i18n "top_contributors.view_all"}}
36-
</a>
36+
</a>

0 commit comments

Comments
 (0)