maintain fixed-width columns when filtering cor-table

This commit is contained in:
alecmerdler 2017-05-27 01:15:28 -07:00 committed by Alec Merdler
parent 457f685952
commit 5e41de5370
9 changed files with 234 additions and 34 deletions

View file

@ -17,7 +17,7 @@
max-display-count="$ctrl.namespacesPerPage"
filter-fields="::['title', 'id']">
<cor-table-col datafield="title"
style="width: 20px;"
style="width: 30px;"
sortfield="title"
bind-model="$ctrl.local.selectedNamespace"
templateurl="/static/js/directives/ui/manage-trigger-githost/namespace-radio-input.html">
@ -100,7 +100,8 @@
max-display-count="$ctrl.repositoriesPerPage"
filter-fields="['name', 'description']">
<cor-table-col bind-model="$ctrl.local.selectedRepository"
templateurl="/static/js/directives/ui/manage-trigger-githost/repository-radio-input.html">
templateurl="/static/js/directives/ui/manage-trigger-githost/repository-radio-input.html"
style="width: 30px;">
<script type="text/ng-template" id="/static/js/directives/ui/manage-trigger-githost/repository-radio-input.html">
<span ng-if="!item.has_admin_permissions">
<i class="fa fa-exclamation-triangle"
@ -135,10 +136,13 @@
<cor-table-col title="Description"
datafield="description"
sortfield="description"
templateurl="/static/js/directives/ui/manage-trigger-githost/repository-description.html">
templateurl="/static/js/directives/ui/manage-trigger-githost/repository-description.html"
class="co-flowing-col">
<script type="text/ng-template" id="/static/js/directives/ui/manage-trigger-githost/repository-description.html">
<span ng-if="item.description">{{ item.description }}</span>
<span class="empty-description" ng-if="!item.description">(None)</span>
<span ng-if="item.description" class="repo-description">
{{ item.description }}
</span>
<span ng-if="!item.description" class="empty-description">(None)</span>
</script>
</cor-table-col>
</cor-table>
@ -376,7 +380,7 @@
max-display-count="$ctrl.robotsPerPage">
<cor-table-col datafield="name"
bind-model="$ctrl.local.robotAccount"
style="width: 20px;"
style="width: 30px;"
templateurl="/static/js/directives/ui/manage-trigger-custom-git/robot-radio-input.html">
<script type="text/ng-template" id="/static/js/directives/ui/manage-trigger-custom-git/robot-radio-input.html">
<input type="radio"