UX: Hide email columns when `Hide Emails` is selected (#13502)

* UX: Scroll user list container when emails are present
This commit is contained in:
Jordan Vidrine 2021-06-23 12:42:16 -05:00 committed by GitHub
parent a9175b7705
commit 385535f421
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View File

@ -19,12 +19,12 @@
{{text-field value=listFilter placeholder=searchHint}}
</div>
{{#load-more selector=".users-list tr" action=(action "loadMore")}}
{{#load-more class="users-list-container" selector=".users-list tr" action=(action "loadMore")}}
{{#if model}}
<table class="table users-list grid">
<thead>
{{table-header-toggle field="username" labelKey="username" order=order asc=asc}}
{{table-header-toggle field="email" labelKey="email" order=order asc=asc}}
{{table-header-toggle class=(if showEmails "" "hidden") field="email" labelKey="email" order=order asc=asc}}
{{table-header-toggle field="last_emailed" labelKey="admin.users.last_emailed" order=order asc=asc}}
{{table-header-toggle field="seen" labelKey="last_seen" order=order asc=asc}}
{{table-header-toggle field="topics_viewed" labelKey="admin.user.topics_entered" order=order asc=asc}}
@ -48,7 +48,7 @@
{{d-icon "far-envelope" title="user.staged" }}
{{/if}}
</td>
<td class="email">
<td class="email {{if showEmails "" "hidden"}}">
{{~user.email~}}
</td>
<td class="last-emailed">
@ -98,7 +98,6 @@
</tbody>
</table>
{{conditional-loading-spinner condition=refreshing}}
{{else}}
<p>{{i18n "search.no_results"}}</p>
{{/if}}

View File

@ -425,6 +425,9 @@ $mobile-breakpoint: 700px;
.controls {
@include clearfix;
}
.users-list-container {
overflow-x: auto;
}
}
.admin-title {