nodebb-theme-persona 14.2.16 → 14.2.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-theme-persona",
3
- "version": "14.2.16",
3
+ "version": "14.2.17",
4
4
  "nbbpm": {
5
5
  "compatibility": "^4.0.0"
6
6
  },
@@ -39,8 +39,8 @@ define('persona/taskbar', [
39
39
  const el = $('#taskbar [data-uuid="' + data.uuid + '"] a');
40
40
  el.parent('[data-uuid]').attr('data-roomId', data.options.roomId);
41
41
 
42
- if (chatObj.users.length === 1) {
43
- const user = chatObj.users[0];
42
+ if (chatObj.users.length === 2) {
43
+ const user = chatObj.users.find(u => String(u.uid) !== String(app.user.uid));
44
44
  el.find('i').remove();
45
45
 
46
46
  if (user.picture) {
@@ -48,7 +48,7 @@ define('persona/taskbar', [
48
48
  el.css('background-size', 'cover');
49
49
  } else {
50
50
  el.css('background-color', user['icon:bgColor'])
51
- .text(user['icon:text'])
51
+ .html(`<span class="d-inline">${user['icon:text']}</span>`)
52
52
  .addClass('avatar');
53
53
  }
54
54
  }
@@ -122,6 +122,7 @@
122
122
  &.taskbar-chat {
123
123
  a, a:hover, a:focus, a:active {
124
124
  background: $primary;
125
+ color: white;
125
126
  }
126
127
 
127
128
  &.new:after {
@@ -150,7 +151,7 @@
150
151
  a {
151
152
  text-align: center;
152
153
 
153
- i {
154
+ i, span {
154
155
  font-size: 18px;
155
156
  line-height: 42px;
156
157
  }