UX: Hide email columns when `Hide Emails` is selected (#13502)
* UX: Scroll user list container when emails are present
This commit is contained in:
parent
a9175b7705
commit
385535f421
|
@ -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}}
|
||||
|
|
|
@ -425,6 +425,9 @@ $mobile-breakpoint: 700px;
|
|||
.controls {
|
||||
@include clearfix;
|
||||
}
|
||||
.users-list-container {
|
||||
overflow-x: auto;
|
||||
}
|
||||
}
|
||||
|
||||
.admin-title {
|
||||
|
|
Loading…
Reference in New Issue