diff --git a/bigbluebutton-html5/app/client/react/components/UserList/UserList.jsx b/bigbluebutton-html5/app/client/react/components/UserList/UserList.jsx
index 1faadcd90e..0e2e004eea 100644
--- a/bigbluebutton-html5/app/client/react/components/UserList/UserList.jsx
+++ b/bigbluebutton-html5/app/client/react/components/UserList/UserList.jsx
@@ -3,7 +3,7 @@ UserList = React.createClass({
return (
+
{this.renderStatusIcons()}
{this.renderUserName()}
- {this.renderUnreadBadge()}
{this.renderSharingStatus()}
-
-=======
-
- {this.renderStatusIcons(user)}
- {this.renderUserName(user)}
- {this.renderSharingStatus(user)}
->>>>>>> 6b4e97a... Change user-list to a tabular markup
);
},
@@ -59,28 +56,19 @@ UserItem = React.createClass({
},
-<<<<<<< HEAD
renderUserName() {
const user = this.props.user;
- let classes = ['usernameEntry'];
-=======
- renderUserName(user) {
- let classes = ['user-list-item-name'];
->>>>>>> 6b4e97a... Change user-list to a tabular markup
+
let userName = user.name;
if (user.isCurrent) {
userName = userName.concat(' (you)');
}
- if (user.unreadMessagesCount) {
- classes.push('has-messages');
- }
-
return (
- this.handleOpenPrivateChat(user)}>
+ | this.handleOpenPrivateChat(user)}>
- {userName} {this.renderUnreadBadge(user.unreadMessagesCount)}
+ {userName} {this.renderUnreadBadge()}
|
);
@@ -88,6 +76,7 @@ UserItem = React.createClass({
renderUnreadBadge() {
const unreadMessagesCount = this.props.user.unreadMessagesCount;
+
if (!unreadMessagesCount) {
return;
}
diff --git a/bigbluebutton-html5/app/client/stylesheets/users.less b/bigbluebutton-html5/app/client/stylesheets/users.less
index 1aaf751254..97cfd95191 100755
--- a/bigbluebutton-html5/app/client/stylesheets/users.less
+++ b/bigbluebutton-html5/app/client/stylesheets/users.less
@@ -257,7 +257,7 @@
width: 1.6em;
font-size: 1.25em;
text-align: center;
- padding: 0.625em 0 0.625em 0.625em;
+ padding: 0;
}
&-name {
@@ -272,6 +272,24 @@
.is-current & {
font-weight: bold;
}
+
+ .has-messages & {
+ padding-right: 30px;
+ position: relative;
+ }
+ }
+
+ &-messages {
+ position: absolute;
+ width: 28px;
+ height: 18px;
+ border-radius: 41%;
+ font-size: 12px;
+ color: #fff;
+ text-align: center;
+ background: #3896D3;
+ right: 0;
+ top: 9px;
}
&-sharing {