fixed user-icons in chat taskbar

main
Julian Lam 9 years ago
parent b933805758
commit 8b68efda0d

@ -51,7 +51,13 @@ $(document).ready(function() {
$.getJSON(config.relative_path + '/api/user/' + utils.slugify(data.options.title), function(user) {
var el = $('#taskbar [data-uuid="' + data.uuid + '"] a');
el.find('i').remove();
if (user.picture) {
el.css('background-image', 'url(' + user.picture + ')');
} else {
el .css('background-color', user['icon:bgColor'])
.text(user['icon:text'])
.addClass('user-icon');
}
});
}

@ -84,6 +84,9 @@
&.taskbar-chat {
a, a:hover, a:focus, a:active {
.user-icon-style(50px, 2.4rem, 50%) !important;
padding: 0;
color: white;
background: none;
background-size: cover;

Loading…
Cancel
Save