Hide everyone role in user card and prevent overflowing of role bubbles

This commit is contained in:
Jeremy Zhang 2018-03-01 07:09:09 +00:00
parent cc0a0bf3bb
commit b61d249fe6
2 changed files with 4 additions and 0 deletions

View File

@ -855,6 +855,7 @@ p.mentioned span.chatmessage {
border: 1px solid;
border-color: inherit;
border-radius: 10px;
white-space: nowrap;
}
#usercard .role .text, #usercard .role .color {

View File

@ -803,6 +803,9 @@
$("#usercard .role .roles").empty();
for (var j = 0; j < data.roles.length; j++) {
var role = data.roles[j];
if (role.id == guild_id) {
continue;
}
var color = null;
if (role.color) {
color = "#" + role.color.toString(16);