Merge pull request #2371 from coreos-inc/entity-search-fix
Fix transparent icons in entity autocomplete
This commit is contained in:
commit
070180e253
2 changed files with 2 additions and 8 deletions
|
@ -88,12 +88,6 @@
|
||||||
top: -2px;
|
top: -2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.entity-mini-listing i.fa .avatar-image {
|
|
||||||
position: absolute;
|
|
||||||
top: -2px;
|
|
||||||
left: 0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.entity-mini-listing .warning {
|
.entity-mini-listing .warning {
|
||||||
margin-top: 6px;
|
margin-top: 6px;
|
||||||
font-size: 10px;
|
font-size: 10px;
|
||||||
|
|
|
@ -287,8 +287,8 @@ angular.module('quay').directive('entitySearch', function () {
|
||||||
'suggestion': function (datum) {
|
'suggestion': function (datum) {
|
||||||
template = '<div class="entity-mini-listing">';
|
template = '<div class="entity-mini-listing">';
|
||||||
if ((datum.entity.kind == 'user' && !datum.entity.is_robot) || (datum.entity.kind == 'org')) {
|
if ((datum.entity.kind == 'user' && !datum.entity.is_robot) || (datum.entity.kind == 'org')) {
|
||||||
template += '<i class="fa fa-user fa-lg"><img class="avatar-image" src="' +
|
template += '<i class="fa"><img class="avatar-image" src="' +
|
||||||
AvatarService.getAvatar(datum.entity.avatar.hash, 20, 'blank') +
|
AvatarService.getAvatar(datum.entity.avatar.hash, 20, 'mm') +
|
||||||
'"></i>';
|
'"></i>';
|
||||||
} else if (datum.entity.kind == 'external') {
|
} else if (datum.entity.kind == 'external') {
|
||||||
template += '<i class="fa fa-user fa-lg"></i>';
|
template += '<i class="fa fa-user fa-lg"></i>';
|
||||||
|
|
Reference in a new issue