From b61d249fe669b8285708d4b2f8ab3b5ea7222fc3 Mon Sep 17 00:00:00 2001 From: Jeremy Zhang Date: Thu, 1 Mar 2018 07:09:09 +0000 Subject: [PATCH] Hide everyone role in user card and prevent overflowing of role bubbles --- webapp/titanembeds/static/css/embedstyle.css | 1 + webapp/titanembeds/static/js/embed.js | 3 +++ 2 files changed, 4 insertions(+) diff --git a/webapp/titanembeds/static/css/embedstyle.css b/webapp/titanembeds/static/css/embedstyle.css index 0c0dc94..f0ba320 100644 --- a/webapp/titanembeds/static/css/embedstyle.css +++ b/webapp/titanembeds/static/css/embedstyle.css @@ -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 { diff --git a/webapp/titanembeds/static/js/embed.js b/webapp/titanembeds/static/js/embed.js index 2c6b92d..77c5793 100644 --- a/webapp/titanembeds/static/js/embed.js +++ b/webapp/titanembeds/static/js/embed.js @@ -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);