nodebb-theme-persona 13.2.18 → 13.2.20

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.2.18",
3
+ "version": "13.2.20",
4
4
  "nbbpm": {
5
5
  "compatibility": "^3.3.0"
6
6
  },
@@ -118,7 +118,7 @@
118
118
  <!-- IF ../deauthUrl -->
119
119
  <a data-component="{../component}" class="btn btn-outline-secondary btn-sm float-end" href="{../deauthUrl}">[[user:sso.dissociate]]</a>
120
120
  <!-- END -->
121
- <a data-component="{../component}" href="{../url}" target="<!-- IF ../associated -->_blank<!-- ELSE -->_top<!-- ENDIF ../associated -->">
121
+ <a data-component="{../component}" href="{{{ if ./url }}}{./url}{{{ else }}}#{{{ end }}}" target="<!-- IF ../associated -->_blank<!-- ELSE -->_top<!-- ENDIF ../associated -->">
122
122
  <!-- IF ../icon --><i class="fa {../icon}"></i><!-- ENDIF ../icon -->
123
123
  <!-- IF ../associated -->[[user:sso.associated]]<!-- ELSE -->[[user:sso.not-associated]]<!-- ENDIF ../associated -->
124
124
  {../name}
@@ -1,6 +1,6 @@
1
1
  <div id="chat-modal" class="chat-modal modal hide" tabindex="-1" role="dialog" aria-labelledby="Chat" aria-hidden="true" data-backdrop="none">
2
2
  <div class="modal-dialog">
3
- <div class="modal-content">
3
+ <div class="modal-content" component="chat/message/window">
4
4
  <div class="modal-header d-flex">
5
5
  <div class="fs-6 flex-grow-1" component="chat/room/name" data-icon="{icon}">{{{ if ./roomName }}}<i class="fa {icon} text-muted"></i> {roomName}{{{ else }}}{./chatWithMessage}{{{ end}}}</div>
6
6
  <button type="button" class="btn btn-link d-none d-md-block p-2 text-muted align-text-top" data-action="maximize">
@@ -15,11 +15,10 @@
15
15
 
16
16
  <button id="chat-close-btn" type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
17
17
  </div>
18
-
18
+ <!-- IMPORT partials/chats/scroll-up-alert.tpl -->
19
19
  <div class="modal-body d-flex flex-column" style="height: 500px;">
20
20
  <div class="d-flex flex-grow-1 gap-1 overflow-auto" style="min-width: 0px;">
21
21
  <div component="chat/messages" class="expanded-chat d-flex flex-column flex-grow-1" data-roomid="{roomId}" style="min-width: 0px;">
22
- <!-- IMPORT partials/chats/scroll-up-alert.tpl -->
23
22
  <ul component="chat/message/content" class="chat-content p-0 m-0 list-unstyled overflow-auto flex-grow-1">
24
23
  <!-- IMPORT partials/chats/messages.tpl -->
25
24
  </ul>
@@ -1,4 +1,4 @@
1
- <div class="d-flex flex-column h-100">
1
+ <div component="chat/message/window" class="d-flex flex-column h-100" >
2
2
  {{{ if !roomId }}}
3
3
  <div class="d-flex flex-column align-items-center gap-3 p-5">
4
4
  <i class="fa-solid fa-wind fs-2 text-muted"></i>
@@ -13,10 +13,10 @@
13
13
 
14
14
  <!-- IMPORT partials/chats/options.tpl -->
15
15
  </div>
16
+ <!-- IMPORT partials/chats/scroll-up-alert.tpl -->
16
17
  <hr class="my-1"/>
17
18
  <div class="d-flex flex-grow-1 gap-1 overflow-auto" style="min-width: 0px;">
18
19
  <div component="chat/messages" class="expanded-chat d-flex flex-column flex-grow-1" data-roomid="{roomId}" style="min-width: 0px;">
19
- <!-- IMPORT partials/chats/scroll-up-alert.tpl -->
20
20
  <ul component="chat/message/content" class="chat-content p-0 m-0 list-unstyled overflow-auto flex-grow-1">
21
21
  <!-- IMPORT partials/chats/messages.tpl -->
22
22
  </ul>
@@ -2,14 +2,14 @@
2
2
 
3
3
  {{{ if messages.parent }}}
4
4
  <div class="d-flex ms-4 mb-2 align-items-center">
5
- <div component="chat/message/parent" data-parent-mid="{messages.parent.mid}" data-uid="{messages.parent.fromuid}" class="btn btn-sm btn-light align-items-start d-flex flex-row gap-2 text-start text-truncate">
6
- <div class="d-flex gap-2 text-sm">
5
+ <div component="chat/message/parent" data-parent-mid="{messages.parent.mid}" data-uid="{messages.parent.fromuid}" class="btn btn-sm btn-light align-items-start d-flex flex-row gap-2 text-start w-100">
6
+ <div class="d-flex gap-2 text-sm text-nowrap">
7
7
  <div><i class="fa fa-sm fa-reply opacity-50"></i></div>
8
8
  <a href="{config.relative_path}/user/{messages.parent.user.userslug}" class="text-decoration-none lh-sm">{buildAvatar(messages.parent.user, "14px", true, "not-responsive")}</a>
9
9
  <a class="chat-user fw-semibold" href="{config.relative_path}/user/{messages.parent.user.userslug}">{messages.parent.user.displayname}</a>
10
10
  <span class="chat-timestamp text-muted timeago text-nowrap hidden" title="{messages.parent.timestampISO}"></span>
11
11
  </div>
12
- <div component="chat/message/parent/content" class="text-muted line-clamp-1 text-sm">{messages.parent.content}</div>
12
+ <div component="chat/message/parent/content" class="text-muted line-clamp-1 text-sm w-100">{messages.parent.content}</div>
13
13
  </div>
14
14
  </div>
15
15
  {{{ end }}}
@@ -1,6 +1,6 @@
1
1
  <div class="d-flex gap-1 align-items-stretch">
2
2
  <!-- search -->
3
- <button class="btn btn-sm- btn-light" component="chat/room/search/toggle" data-manual-tooltip="1" title="[[global:header.search]]">
3
+ <button class="btn btn-sm btn-light" component="chat/room/search/toggle" data-manual-tooltip="1" title="[[global:header.search]]">
4
4
  <i class="fa fa-search text-muted"></i>
5
5
  </button>
6
6
  <div component="chat/room/search/container" class="position-relative hidden align-self-center">
@@ -1,3 +1,3 @@
1
1
  <div class="position-relative">
2
- <div component="chat/messages/scroll-up-alert" class="py-1 position-absolute start-50 translate-middle-x text-sm scroll-up-alert alert alert-info d-none d-md-block text-nowrap hidden" role="button" style="z-index: 500;"><i class="fa fa-fw fa-arrow-down"></i> [[modules:chat.scroll-up-alert]]</div>
2
+ <div component="chat/messages/scroll-up-alert" class="py-1 mt-1 position-absolute start-50 top-50 translate-middle text-sm scroll-up-alert alert alert-info d-none d-md-block text-nowrap hidden" role="button" style="z-index: 500;"><i class="fa fa-fw fa-arrow-down"></i> [[modules:chat.scroll-up-alert]]</div>
3
3
  </div>