Use small loading indicator for avatars smaller than 32px
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
6d29b36200
commit
1f635bb892
2 changed files with 6 additions and 1 deletions
|
@ -133,7 +133,11 @@
|
|||
}
|
||||
};
|
||||
|
||||
$div.addClass('icon-loading');
|
||||
if (size < 32) {
|
||||
$div.addClass('icon-loading-small');
|
||||
} else {
|
||||
$div.addClass('icon-loading');
|
||||
}
|
||||
img.width = size;
|
||||
img.height = size;
|
||||
img.src = url;
|
||||
|
|
|
@ -169,5 +169,6 @@
|
|||
this.css('font-size', '');
|
||||
this.html('');
|
||||
this.removeClass('icon-loading');
|
||||
this.removeClass('icon-loading-small');
|
||||
};
|
||||
}(jQuery));
|
||||
|
|
Loading…
Reference in a new issue