improved userlist ux (prevent overlapping of objects)

This commit is contained in:
0ip 2012-04-09 15:16:40 +02:00
parent 60eea0a3cf
commit c3095bbd1b
2 changed files with 2 additions and 3 deletions

View File

@ -427,7 +427,6 @@ table#otheruserstable { display: none; }
#nootherusers a { color: #3C88FF; }
#otheruserstable td {
border-top: 1px solid #555;
height: 26px;
vertical-align: middle;
padding: 0 2px;

View File

@ -1,4 +1,4 @@
/**
+/**
* This code is mostly from the old Etherpad. Please help us to comment this code.
* This helps other people to understand this code better and helps them to improve it.
* TL;DR COMMENTS ON THIS FILE ARE HIGHLY APPRECIATED
@ -120,7 +120,7 @@ var paduserlist = (function()
nameHtml = '<input type="text" class="editempty newinput" value="unnamed" ' + (isNameEditable(data) ? '' : 'disabled="disabled" ') + '/>';
}
return ['<td style="height:', height, 'px" class="usertdswatch"><div class="swatch" style="background:' + data.color + '">&nbsp;</div></td>', '<td style="height:', height, 'px" class="usertdname">', nameHtml, '</td>', '<td style="height:', height, 'px" class="usertdstatus">', padutils.escapeHtml(data.status), '</td>', '<td style="height:', height, 'px" class="activity">', padutils.escapeHtml(data.activity), '</td>'].join('');
return ['<td style="height:', height, 'px" class="usertdswatch"><div class="swatch" style="background:' + data.color + '">&nbsp;</div></td>', '<td style="height:', height, 'px" class="usertdname">', nameHtml, '</td>', '<td style="height:', height, 'px" class="activity">', padutils.escapeHtml(data.activity), '</td>'].join('');
}
function getRowHtml(id, innerHtml)