Merge pull request #2371 from coreos-inc/entity-search-fix

Fix transparent icons in entity autocomplete
This commit is contained in:
josephschorr 2017-02-24 11:27:51 -05:00 committed by GitHub
commit 070180e253
2 changed files with 2 additions and 8 deletions

View file

@ -88,12 +88,6 @@
top: -2px;
}
.entity-mini-listing i.fa .avatar-image {
position: absolute;
top: -2px;
left: 0px;
}
.entity-mini-listing .warning {
margin-top: 6px;
font-size: 10px;

View file

@ -287,8 +287,8 @@ angular.module('quay').directive('entitySearch', function () {
'suggestion': function (datum) {
template = '<div class="entity-mini-listing">';
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="' +
AvatarService.getAvatar(datum.entity.avatar.hash, 20, 'blank') +
template += '<i class="fa"><img class="avatar-image" src="' +
AvatarService.getAvatar(datum.entity.avatar.hash, 20, 'mm') +
'"></i>';
} else if (datum.entity.kind == 'external') {
template += '<i class="fa fa-user fa-lg"></i>';