Fix transparent icons in entity autocomplete

This is not a *complete* solution, as it still won't show the nice CSS-based avatars, but that can be done in a followup
This commit is contained in:
Joseph Schorr 2017-02-21 21:16:15 -05:00
parent deb2b1b003
commit 6133b01d4d
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>';