Limit userstatus size

This commit is contained in:
Guangcong Luo
2019-07-15 13:18:09 -04:00
parent 22729c7cdf
commit ac741d2352
2 changed files with 4 additions and 1 deletions

View File

@@ -2493,7 +2493,7 @@ function toId() {
var offline = data.rooms === false;
var status = offline ? '(Offline)' : '(Online)';
if (data.status && !offline) status = data.status.startsWith('!') ? data.status.slice(1) : data.status;
buf += '<span class="userstatus' + (offline ? ' offline' : '') + '">' + BattleLog.escapeHTML(status) + '</span><br />';
buf += '<span class="userstatus' + (offline ? ' offline' : '') + '">' + BattleLog.escapeHTML(status) + '<br /></span>';
buf += '<small>' + (group || '&nbsp;') + '</small>';
if (globalgroup) buf += '<br /><small>' + globalgroup + '</small>';
if (data.rooms) {

View File

@@ -3053,6 +3053,9 @@ a.ilink.yours {
font-style: italic;
font-size: 8pt;
word-wrap: break-word;
overflow: hidden;
max-height: 18pt;
display: block;
}
.userdetails {