Fix layout for user names in chat panel
This commit is contained in:
parent
69b1b7b11a
commit
65da335643
|
@ -60,8 +60,7 @@ define([
|
||||||
storeMessages: undefined,
|
storeMessages: undefined,
|
||||||
|
|
||||||
tplUser: ['<li id="<%= user.get("iid") %>"<% if (!user.get("online")) { %> class="offline"<% } %>>',
|
tplUser: ['<li id="<%= user.get("iid") %>"<% if (!user.get("online")) { %> class="offline"<% } %>>',
|
||||||
'<div class="name"><%= scope.getUserName(user.get("username")) %>',
|
'<div class="name"><div class="color" style="background-color: <%= user.get("color") %>;" ></div><%= scope.getUserName(user.get("username")) %>',
|
||||||
'<div class="color" style="background-color: <%= user.get("color") %>;" ></div>',
|
|
||||||
'</div>',
|
'</div>',
|
||||||
'</li>'].join(''),
|
'</li>'].join(''),
|
||||||
|
|
||||||
|
|
|
@ -52,10 +52,9 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.color {
|
.color {
|
||||||
position: absolute;
|
display: inline-block;
|
||||||
top: 0;
|
vertical-align: middle;
|
||||||
left: 0;
|
margin: 0 5px 3px 0;
|
||||||
margin-top: 1px;
|
|
||||||
width: 12px;
|
width: 12px;
|
||||||
height: 12px;
|
height: 12px;
|
||||||
border: 1px solid @gray-dark;
|
border: 1px solid @gray-dark;
|
||||||
|
@ -65,12 +64,12 @@
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
display: block;
|
display: block;
|
||||||
position: relative;
|
padding: 0 10px 0 0;
|
||||||
padding: 0 10px 0 16px;
|
|
||||||
margin-top: -2px;
|
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
line-height: normal;
|
||||||
|
height: 16px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue