Entity search menu improvements: sorting and max height
This commit is contained in:
parent
6eaf1dbb3f
commit
4deacf11d6
2 changed files with 9 additions and 2 deletions
|
@ -40,6 +40,12 @@
|
|||
margin-right: 36px;
|
||||
}
|
||||
|
||||
.entity-search-element .entity-menu {
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto;
|
||||
max-height: 400px;
|
||||
}
|
||||
|
||||
.entity-search-element .dropdown {
|
||||
vertical-align: middle;
|
||||
position: absolute;
|
||||
|
|
|
@ -5,7 +5,8 @@
|
|||
ng-click="lazyLoad()">
|
||||
<span class="caret"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu" ng-class="pullRight == 'true' ? 'pull-right': ''" role="menu" aria-labelledby="entityDropdownMenu">
|
||||
<ul class="dropdown-menu entity-menu" ng-class="pullRight == 'true' ? 'pull-right': ''" role="menu"
|
||||
aria-labelledby="entityDropdownMenu">
|
||||
<li ng-show="lazyLoading" style="padding: 10px"><div class="cor-loader"></div></li>
|
||||
|
||||
<li role="presentation" class="dropdown-header" ng-show="!lazyLoading && !robots && !isAdmin && !teams">
|
||||
|
@ -67,7 +68,7 @@
|
|||
|
||||
<li role="presentation" class="dropdown-header" ng-show="!lazyLoading && robots">Robot Accounts</li>
|
||||
|
||||
<li class="menuitem" role="presentation" ng-repeat="robot in robots" ng-show="!lazyLoading">
|
||||
<li class="menuitem" role="presentation" ng-repeat="robot in robots | orderBy:name" ng-show="!lazyLoading">
|
||||
<a role="menuitem" tabindex="-1" href="javascript:void(0)" ng-click="setEntity(robot.name, 'user', true)">
|
||||
<i class="fa fa-wrench"></i> <span>{{ robot.name }}</span>
|
||||
</a>
|
||||
|
|
Reference in a new issue