Fix Bug 37291
This commit is contained in:
parent
582b7e16e4
commit
f11f79b1b9
|
@ -60,8 +60,8 @@ define([
|
|||
storeMessages: undefined,
|
||||
|
||||
tplUser: ['<li id="<%= user.get("iid") %>"<% if (!user.get("online")) { %> class="offline"<% } %>>',
|
||||
'<div class="color" style="background-color: <%= user.get("color") %>;" >',
|
||||
'<label class="name"><%= scope.getUserName(user.get("username")) %></label>',
|
||||
'<div class="name"><%= scope.getUserName(user.get("username")) %>',
|
||||
'<div class="color" style="background-color: <%= user.get("color") %>;" ></div>',
|
||||
'</div>',
|
||||
'</li>'].join(''),
|
||||
|
||||
|
|
|
@ -1370,7 +1370,7 @@ define([
|
|||
return Common.Utils.String.ellipsis(Common.Utils.String.htmlEncode(quote), 120, true);
|
||||
},
|
||||
getUserName: function (username) {
|
||||
return Common.Utils.String.ellipsis(Common.Utils.String.htmlEncode(username), 22, true);
|
||||
return Common.Utils.String.htmlEncode(username);
|
||||
},
|
||||
|
||||
pickLink: function (message) {
|
||||
|
|
|
@ -52,22 +52,24 @@
|
|||
}
|
||||
|
||||
.color {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
margin-top: 1px;
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
border: 1px solid @gray-dark;
|
||||
}
|
||||
|
||||
.name {
|
||||
display: block;
|
||||
padding-left: 16px;
|
||||
position: relative;
|
||||
padding: 0 10px 0 16px;
|
||||
margin-top: -2px;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
font-weight: bold;
|
||||
vertical-align: middle;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -94,6 +96,8 @@
|
|||
.user {
|
||||
font-weight: bold;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.message {
|
||||
|
|
|
@ -113,10 +113,9 @@
|
|||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
padding: 10px 0px 0 0px;
|
||||
padding: 10px 65px 0 0px;
|
||||
height: 26px;
|
||||
cursor: default;
|
||||
max-width: 155px;
|
||||
}
|
||||
|
||||
.user-name-colored {
|
||||
|
|
|
@ -121,8 +121,8 @@
|
|||
font-size: 12px;
|
||||
cursor: pointer;
|
||||
color: @gray-darker;
|
||||
max-width: 210px;
|
||||
text-overflow: ellipsis;
|
||||
padding-right: 35px;
|
||||
}
|
||||
|
||||
.color {
|
||||
|
|
Loading…
Reference in a new issue