Merge pull request #2053 from stianst/KEYCLOAK-813

KEYCLOAK-813
This commit is contained in:
Stian Thorgersen 2016-01-19 10:08:04 +01:00
commit 5f8c26de63
2 changed files with 55 additions and 10 deletions

View file

@ -26,11 +26,11 @@
</tr> </tr>
<tr> <tr>
<tr data-ng-show="searchLoaded && users.length > 0"> <tr data-ng-show="searchLoaded && users.length > 0">
<th>ID</th> <th class="w-15">ID</th>
<th>Username</th> <th class="w-15">Username</th>
<th>Email</th> <th class="w-15">Email</th>
<th>Last Name</th> <th class="w-15">Last Name</th>
<th>First Name</th> <th class="w-15">First Name</th>
<th colspan="{{access.impersonation == true ? '3' : '2'}}">Actions</th> <th colspan="{{access.impersonation == true ? '3' : '2'}}">Actions</th>
</tr> </tr>
</tr> </tr>
@ -48,11 +48,11 @@
</tfoot> </tfoot>
<tbody> <tbody>
<tr ng-repeat="user in users"> <tr ng-repeat="user in users">
<td style="max-width: 10em;"><a href="#/realms/{{realm.realm}}/users/{{user.id}}">{{user.id}}</a></td> <td class="clip"><a href="#/realms/{{realm.realm}}/users/{{user.id}}">{{user.id}}</a></td>
<td>{{user.username}}</td> <td class="clip">{{user.username}}</td>
<td>{{user.email}}</td> <td class="clip">{{user.email}}</td>
<td>{{user.lastName}}</td> <td class="clip">{{user.lastName}}</td>
<td>{{user.firstName}}</td> <td class="clip">{{user.firstName}}</td>
<td class="kc-action-cell"> <td class="kc-action-cell">
<button class="btn btn-default btn-block btn-sm" kc-open="/realms/{{realm.realm}}/users/{{user.id}}">Edit</button> <button class="btn btn-default btn-block btn-sm" kc-open="/realms/{{realm.realm}}/users/{{user.id}}">Edit</button>
</td> </td>

View file

@ -26,7 +26,46 @@ table {
margin-top: 0px !important; margin-top: 0px !important;
} }
table {
max-width: 100%;
}
td.clip {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: 0;
}
th.w-10 {
width: 10%;
}
th.w-15 {
width: 15%;
}
th.w-20 {
width: 20%;
}
th.w-25 {
width: 25%;
}
th.w-30 {
width: 30%;
}
th.w-35 {
width: 35%;
}
th.w-40 {
width: 40%;
}
/*********** Loading ***********/ /*********** Loading ***********/
@ -299,6 +338,9 @@ h1 i {
.kc-action-cell { .kc-action-cell {
position: relative; position: relative;
width: 100px; width: 100px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
} }
.kc-action-cell .btn { .kc-action-cell .btn {
@ -308,6 +350,9 @@ h1 i {
left: 0; left: 0;
right: 0; right: 0;
bottom: 0; bottom: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
} }
.kc-sorter span { .kc-sorter span {