Skip to content

Commit

Permalink
UX: Move total user count
Browse files Browse the repository at this point in the history
  • Loading branch information
awesomerobot committed Apr 19, 2019
1 parent 99efd12 commit cbe7166
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
3 changes: 1 addition & 2 deletions app/assets/javascripts/discourse/templates/users.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@

{{#conditional-loading-spinner condition=model.loading}}
{{#if model.length}}
<div class='total-rows'>{{i18n "directory.total_rows" count=model.totalRows}}</div>

<table>
<thead>
<th>&nbsp;</th>
<th>{{i18n "directory.total_rows" count=model.totalRows}}</th>
{{directory-toggle field="likes_received" order=order asc=asc icon="heart"}}
{{directory-toggle field="likes_given" order=order asc=asc icon="heart"}}
{{directory-toggle field="topic_count" order=order asc=asc}}
Expand Down
4 changes: 0 additions & 4 deletions app/assets/stylesheets/common/base/directory.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@
.filter-name {
float: right;
}
.total-rows {
color: $primary-medium;
text-align: right;
}
.spinner {
clear: both;
}
Expand Down
5 changes: 5 additions & 0 deletions app/assets/stylesheets/mobile/directory.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
float: left;
}

.total-rows {
color: $primary-medium;
padding: 5px;
}

.user {
border-top: 1px solid $primary-low;
padding: 1em;
Expand Down

0 comments on commit cbe7166

Please sign in to comment.