nodebb-theme-persona 13.0.4 → 13.0.6

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": "13.0.4",
3
+ "version": "13.0.6",
4
4
  "nbbpm": {
5
5
  "compatibility": "^3.0.0"
6
6
  },
package/public/persona.js CHANGED
@@ -155,7 +155,7 @@ $(document).ready(function () {
155
155
  } else {
156
156
  el.css('background-color', user['icon:bgColor'])
157
157
  .text(user['icon:text'])
158
- .addClass('user-icon');
158
+ .addClass('avatar');
159
159
  }
160
160
  }
161
161
  });
package/scss/chats.scss CHANGED
@@ -133,6 +133,7 @@
133
133
  }
134
134
 
135
135
  > li {
136
+ height: 80px;
136
137
  display: flex;
137
138
  position: relative;
138
139
  clear: both;
@@ -257,7 +258,6 @@
257
258
  .avatar {
258
259
  $size: 80px;
259
260
  @include user-icon-style($size, calc($size * 0.6), 0);
260
- background: $gray-200;
261
261
  }
262
262
  }
263
263
  }
@@ -72,7 +72,7 @@
72
72
  padding: 3px 15px;
73
73
  font-size: 20px;
74
74
 
75
- &.user-icon {
75
+ &.avatar {
76
76
  overflow: visible;
77
77
  }
78
78
 
@@ -114,6 +114,7 @@
114
114
  &.taskbar-composer {
115
115
  a, a:hover, a:focus, a:active {
116
116
  background-color: $danger;
117
+ color: white;
117
118
  background-size: cover;
118
119
  }
119
120
  }
@@ -152,7 +153,6 @@
152
153
  i {
153
154
  font-size: 18px;
154
155
  line-height: 42px;
155
- color: $body-color;
156
156
  }
157
157
  }
158
158
  }
@@ -13,7 +13,7 @@
13
13
  <button type="button" class="btn-close" aria-hidden="true" aria-label="Close" data-action="close"></button>
14
14
  </div>
15
15
  <div class="position-relative">
16
- <div component="chat/messages/scroll-up-alert" class="position-absolute scroll-up-alert alert alert-info hidden w-100" role="button">[[modules:chat.scroll-up-alert]]</div>
16
+ <div component="chat/messages/scroll-up-alert" class="position-absolute scroll-up-alert alert alert-info hidden w-100" role="button" style="z-index: 1;">[[modules:chat.scroll-up-alert]]</div>
17
17
  </div>
18
18
  <ul class="chat-content">
19
19
  <!-- IMPORT partials/chats/messages.tpl -->
@@ -7,6 +7,7 @@
7
7
  <!-- ENDIF @first -->
8
8
  {{{end}}}
9
9
 
10
+ {{{ if rooms.users.length }}}
10
11
  <ul class="members">
11
12
  {{{each rooms.users}}}
12
13
  <li>
@@ -14,14 +15,17 @@
14
15
  </li>
15
16
  {{{end}}}
16
17
  </ul>
18
+ {{{ end }}}
17
19
 
18
- <div class="notification-chat-content">
19
- <strong class="room-name">
20
- <!-- IF !rooms.lastUser.uid -->
20
+ <div class="notification-chat-content flex-grow-1">
21
+ <!-- IF !rooms.lastUser.uid -->
22
+ <div class="p-3 text-center h-100">
21
23
  <span>[[modules:chat.no-users-in-room]]</span>
22
- <!-- ELSE -->
24
+ </div>
25
+ <!-- ELSE -->
26
+ <strong class="room-name">
23
27
  <span component="chat/title"><!-- IF rooms.roomName -->{rooms.roomName}<!-- ELSE -->{rooms.usernames}<!-- ENDIF rooms.roomName --></span>
24
- <!-- ENDIF !rooms.lastUser.uid -->
25
28
  </strong>
29
+ <!-- ENDIF !rooms.lastUser.uid -->
26
30
  </div>
27
31
  </li>