nodebb-theme-harmony 2.2.8 → 2.2.10

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-harmony",
3
- "version": "2.2.8",
3
+ "version": "2.2.10",
4
4
  "nbbpm": {
5
5
  "compatibility": "^4.0.0"
6
6
  },
@@ -6,7 +6,7 @@
6
6
  </div>
7
7
 
8
8
  <div class="d-flex gap-1">
9
- <div class="btn-group bottom-sheet" component="category/watch/all">
9
+ <div class="dropdown bottom-sheet" component="category/watch/all">
10
10
  <button class="btn btn-ghost btn-sm ff-secondary fw-semibold dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" type="button">
11
11
  <span>[[user:change-all]]</span>
12
12
  </button>
@@ -4,7 +4,7 @@
4
4
  <div class="d-flex gap-1">
5
5
  <h3 class="fw-semibold fs-5 mb-0 align-self-center">[[global:topics]]</h3>
6
6
  {{{ if showSort }}}
7
- <div class="btn-group bottom-sheet" component="thread/sort">
7
+ <div class="dropdown bottom-sheet" component="thread/sort">
8
8
  <button title="[[global:sort]]" class="btn btn-ghost btn-sm dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" type="button"><i class="fa-solid fa-arrow-up-wide-short"></i></button>
9
9
  <ul class="dropdown-menu p-1 text-sm" role="menu">
10
10
  {{{each sortOptions }}}
@@ -10,28 +10,28 @@
10
10
  <div class="alert alert-warning text-center">[[uploads:no-uploads-found]]</div>
11
11
  {{{ end }}}
12
12
 
13
- <table class="table table-striped table-responsive">
14
- <thead>
15
- <tr>
16
- <th></th>
17
- <th></th>
18
- </tr>
19
- </thead>
20
- <tbody>
21
- {{{ each uploads }}}
22
- <tr data-name="{./name}">
23
- <td>
24
- <a class="text-break" href="{config.relative_path}{./url}">{./url}</a>
25
- </td>
26
- <td>
27
- <div class="btn-group ">
13
+ <div class="table-responsive">
14
+ <table class="table table-striped w-100">
15
+ <thead>
16
+ <tr>
17
+ <th></th>
18
+ <th></th>
19
+ </tr>
20
+ </thead>
21
+ <tbody>
22
+ {{{ each uploads }}}
23
+ <tr data-name="{./name}">
24
+ <td>
25
+ <a class="text-break" href="{config.relative_path}{./url}">{./url}</a>
26
+ </td>
27
+ <td style="width: 1%; white-space: nowrap;">
28
28
  <button class="btn btn-danger btn-sm" data-action="delete" aria-label="[[aria:delete-upload-button]]"><i class="fa fa-trash"></i></button>
29
- </div>
30
- </td>
31
- </tr>
32
- {{{ end }}}
33
- </tbody>
34
- </table>
29
+ </td>
30
+ </tr>
31
+ {{{ end }}}
32
+ </tbody>
33
+ </table>
34
+ </div>
35
35
 
36
36
  <!-- IMPORT partials/paginator.tpl -->
37
37
  <!-- IMPORT partials/account/footer.tpl -->
@@ -1,4 +1,4 @@
1
- <div class="btn-group bottom-sheet">
1
+ <div class="dropdown bottom-sheet">
2
2
  <button type="button" class="btn btn-light dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
3
3
  <i class="fa fa-gear fa-fw"></i>
4
4
  </button>
@@ -44,9 +44,9 @@
44
44
  <div class="d-flex gap-2" component="user/badges"></div>
45
45
  {{{ if isAdminOrGlobalModeratorOrModerator }}}
46
46
  {{{ if banned }}}
47
- <div class="text-xm text-muted">
47
+ <div class="text-sm text-muted">
48
48
  {{{ if banned_until }}}
49
- [[user:info.banned-until, {banned_until_readable}]]
49
+ [[user:info.banned-until, {isoTimeToLocaleString(./banned_until_readable, config.userLang)}]]
50
50
  {{{ else }}}
51
51
  [[user:info.banned-permanently]]
52
52
  {{{ end }}}
@@ -8,15 +8,13 @@
8
8
  {{{ each notifications }}}
9
9
  <div class="{./readClass}" data-nid="{./nid}" data-path="{./path}" {{{ if ./pid }}}data-pid="{./pid}"{{{ end }}}{{{ if ./tid }}}data-tid="{./tid}"{{{ end }}}>
10
10
  <div class="d-flex gap-1 justify-content-between">
11
- <div class="btn btn-ghost btn-sm d-flex gap-2 flex-grow-1 text-start align-items-start">
11
+ <div class="btn btn-ghost btn-sm d-flex gap-2 flex-grow-1 align-items-start text-start">
12
12
  <a class="flex-grow-0 flex-shrink-0" href="{{{ if ./user.userslug}}}{config.relative_path}/user/{./user.userslug}{{{ else }}}#{{{ end }}}">
13
- {{{ if (./image && ./from) }}}
14
- <img class="avatar avatar-rounded" style="--avatar-size: 32px;" src="{./image}" />
13
+ {{{ if ./user }}}
14
+ {buildAvatar(./user, "32px", true)}
15
15
  {{{ else }}}
16
- {{{ if ./icon }}}
17
- <div class="avatar avatar-rounded" style="--avatar-size: 32px;"><i class="text-secondary fa {./icon}"></i></div>
18
- {{{ else }}}
19
- <div class="avatar avatar-rounded" style="--avatar-size: 32px; background-color: {./user.icon:bgColor};">{./user.icon:text}</div>
16
+ {{{ if (./icon || ./image) }}}
17
+ <div class="avatar avatar-rounded" style="--avatar-size: 32px;"><i class="text-secondary fa {{{ if ./icon }}}{./icon}{{{ else }}}{./image}{{{ end }}}"></i></div>
20
18
  {{{ end }}}
21
19
  {{{ end }}}
22
20
  </a>
@@ -1,5 +1,5 @@
1
- <div class="btn-group bottom-sheet" component="thread/sort">
2
- <button class="btn btn-ghost btn-sm ff-secondary d-flex gap-2 align-items-center dropdown-toggle text-truncate" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" aria-label="[[aria:post-sort-option, {sortOptionLabel}]]">
1
+ <div class="dropdown bottom-sheet" component="thread/sort">
2
+ <button class="btn btn-ghost btn-sm ff-secondary d-flex gap-2 align-items-center dropdown-toggle text-truncate w-100" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" aria-label="[[aria:post-sort-option, {sortOptionLabel}]]">
3
3
  <i class="fa fa-fw fa-arrow-down-wide-short text-primary"></i>
4
4
  <span class="d-none d-md-inline fw-semibold text-truncate text-nowrap">{sortOptionLabel}</span>
5
5
  </button>
@@ -1,6 +1,6 @@
1
1
  {{{ if privileges.view_thread_tools }}}
2
- <div class="btn-group thread-tools bottom-sheet">
3
- <button class="btn btn-ghost btn-sm ff-secondary d-flex align-items-center gap-2 dropdown-toggle text-truncate" data-bs-toggle="dropdown" type="button" aria-haspopup="true" aria-expanded="false">
2
+ <div class="dropdown thread-tools bottom-sheet">
3
+ <button class="btn btn-ghost btn-sm ff-secondary d-flex align-items-center gap-2 dropdown-toggle text-truncate w-100" data-bs-toggle="dropdown" type="button" aria-haspopup="true" aria-expanded="false">
4
4
  <i class="fa fa-fw fa-gear text-primary"></i>
5
5
  <span class="d-none d-md-inline fw-semibold text-truncate text-nowrap">[[topic:thread-tools.title]]</span>
6
6
  </button>
@@ -1,6 +1,6 @@
1
1
  {{{ if config.loggedIn }}}
2
- <div class="btn-group bottom-sheet" component="topic/watch">
3
- <button class="btn btn-ghost btn-sm ff-secondary d-flex gap-2 dropdown-toggle text-truncate" data-bs-toggle="dropdown" type="button" aria-haspopup="true" aria-expanded="false">
2
+ <div class="dropdown bottom-sheet" component="topic/watch">
3
+ <button class="btn btn-ghost btn-sm ff-secondary d-flex gap-2 dropdown-toggle text-truncate w-100" data-bs-toggle="dropdown" type="button" aria-haspopup="true" aria-expanded="false">
4
4
  <span component="topic/following/menu" class="d-flex gap-2 align-items-center{{{ if !isFollowing }}} hidden{{{ end }}}">
5
5
  <i class="flex-shrink-0 fa fa-fw fa-bell-o text-primary"></i>
6
6
  <span class="d-none d-md-inline fw-semibold text-truncate text-nowrap">[[topic:watching]]</span>
@@ -1,4 +1,4 @@
1
- <div class="btn-group bottom-sheet{{{ if !filters.length }}} hidden{{{ end }}}">
1
+ <div class="dropdown bottom-sheet{{{ if !filters.length }}} hidden{{{ end }}}">
2
2
  <button type="button" class="btn btn-ghost btn-sm ff-secondary d-flex gap-2 align-items-center dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
3
3
  <i class="fa fa-fw fa-filter text-primary"></i>
4
4
  <span class="visible-md-inline visible-lg-inline fw-semibold">{selectedFilter.name}</span>
@@ -16,7 +16,7 @@
16
16
  <!-- IMPORT partials/tags/filter-dropdown-left.tpl -->
17
17
  {{{ end }}}
18
18
  {{{ if template.unread }}}
19
- <div class="markread btn-group {{{ if !topics.length }}}hidden{{{ end }}}">
19
+ <div class="markread {{{ if !topics.length }}}hidden{{{ end }}}">
20
20
  <!-- IMPORT partials/category/selector-dropdown-left.tpl -->
21
21
  </div>
22
22
  {{{ end }}}
@@ -26,7 +26,7 @@
26
26
  {{{ end }}}
27
27
 
28
28
  {{{ if template.world }}}
29
- <div class="btn-group bottom-sheet">
29
+ <div class="dropdown bottom-sheet">
30
30
  <button class="btn btn-ghost btn-sm ff-secondary d-flex gap-2 align-items-center dropdown-toggle" data-bs-toggle="dropdown">
31
31
  <i class="fa fa-fw fa-arrow-down-wide-short text-primary"></i>
32
32
  <span id="sort-label" class="visible-md-inline visible-lg-inline fw-semibold"></span>
@@ -1,4 +1,4 @@
1
- <div class="btn-group bottom-sheet {{{ if !terms.length }}}hidden{{{ end }}}">
1
+ <div class="dropdown bottom-sheet {{{ if !terms.length }}}hidden{{{ end }}}">
2
2
  <button type="button" class="btn btn-ghost btn-sm ff-secondary d-flex align-items-center gap-2 dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
3
3
  <i class="fa fa-fw fa-clock text-primary"></i>
4
4
  <span class="visible-md-inline visible-lg-inline fw-semibold">{selectedTerm.name}</span>