frontend: Make table headers fixed.

Tweaked by tabbott to update the users list as well.

Fixes #4746.
This commit is contained in:
Vaida Plankyte
2017-07-03 14:22:56 +02:00
committed by Tim Abbott
parent 75617d07de
commit 6e3308a5ac
3 changed files with 26 additions and 17 deletions

View File

@@ -194,6 +194,11 @@ td .button {
background-color: inherit;
color: inherit;
border-top: 1px solid hsl(0, 0%, 86%) !important;
border-bottom: 1px solid hsl(0, 0%, 86%) !important;
}
#admin-user-list .table tr:first-of-type td {
border-top: none;
}
.settings-section input[type=text].search {

View File

@@ -1,17 +1,19 @@
<div id="admin-user-list" class="settings-section" data-name="bot-list-admin">
<input type="text" class="search" placeholder="{{t 'Filter bots' }}" />
<div class="clear-float"></div>
<table class="table table-condensed table-striped wrapped-table">
<thead>
<th class="wrapped-cell">{{t "Name" }}</th>
<th>{{t "Email" }}</th>
<th>{{t "Owner" }}</th>
<th>{{t "Bot type" }}</th>
{{#if is_admin}}
<th class="actions">{{t "Actions" }}</th>
{{/if}}
</thead>
</table>
<div class="progressive-table-wrapper">
<table class="table table-condensed table-striped wrapped-table">
<thead>
<th class="wrapped-cell">{{t "Name" }}</th>
<th>{{t "Email" }}</th>
<th>{{t "Owner" }}</th>
<th>{{t "Bot type" }}</th>
{{#if is_admin}}
<th class="actions">{{t "Actions" }}</th>
{{/if}}
</thead>
<tbody id="admin_bots_table" class="admin_bot_table required-text thick"
data-empty="{{ t 'No bots match your current filter.' }}"></tbody>
</table>

View File

@@ -2,16 +2,18 @@
<input type="text" class="search" placeholder="{{t 'Filter users' }}" />
<div class="clear-float"></div>
<table class="table table-condensed table-striped wrapped-table">
<thead>
<th class="wrapped-cell">{{t "Name" }}</th>
<th>{{t "Email" }}</th>
<th class="last_active">{{t "Last active" }}</th>
{{#if is_admin}}
<th class="actions">{{t "Actions" }}</th>
{{/if}}
</thead>
</table>
<div class="progressive-table-wrapper">
<table class="table table-condensed table-striped wrapped-table">
<thead>
<th class="wrapped-cell">{{t "Name" }}</th>
<th>{{t "Email" }}</th>
<th class="last_active">{{t "Last active" }}</th>
{{#if is_admin}}
<th class="actions">{{t "Actions" }}</th>
{{/if}}
</thead>
<tbody id="admin_users_table" class="admin_user_table required-text thick"
data-empty="{{t 'No users match your current filter.' }}"></tbody>
</table>