nodebb-theme-harmony 2.0.20 → 2.0.22

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.0.20",
3
+ "version": "2.0.22",
4
4
  "nbbpm": {
5
5
  "compatibility": "^4.0.0"
6
6
  },
@@ -14,6 +14,21 @@
14
14
  {./descriptionParsed}
15
15
  </div>
16
16
  {{{ end }}}
17
+ {{{ if !./link }}}
18
+ <div class="d-flex gap-1 d-block d-lg-none w-100">
19
+ <span class="badge text-body border stats text-xs text-muted">
20
+ <i class="fa fa-fw fa-list"></i>
21
+ <span class="fw-normal">{humanReadableNumber(./totalTopicCount, 0)}</span>
22
+ </span>
23
+ <span class="badge text-body border stats text-xs text-muted">
24
+ <i class="fa-regular fa-fw fa-message"></i>
25
+ <span class="fw-normal">{humanReadableNumber(./totalPostCount, 0)}</span>
26
+ </span>
27
+ {{{ if ./teaser }}}
28
+ <a href="{config.relative_path}{./teaser.url}" class="border badge bg-transparent text-muted fw-normal timeago {{{ if (!./teaser.timestampISO || config.theme.mobileTopicTeasers) }}}hidden{{{ end }}}" title="{./teaser.timestampISO}"></a>
29
+ {{{ end }}}
30
+ </div>
31
+ {{{ end }}}
17
32
  {{{ if !config.hideSubCategories }}}
18
33
  {{{ if ./children.length }}}
19
34
  <ul class="list-unstyled category-children row row-cols-1 row-cols-md-2 g-2 my-1 w-100">
@@ -43,11 +58,11 @@
43
58
  <div class="card card-header border-0 p-2 overflow-hidden rounded-1 d-flex flex-column align-items-center">
44
59
  <span class="fs-5 ff-secondary lh-1" title="{./totalPostCount}">{humanReadableNumber(./totalPostCount, 0)}</span>
45
60
  <span class="d-none d-xl-flex text-lowercase text-xs">[[global:posts]]</span>
46
- <i class="d-xl-none fa fa-fw text-xs text-muted opacity-75 fa-message"></i>
61
+ <i class="d-xl-none fa-regular fa-fw text-xs text-muted opacity-75 fa-message"></i>
47
62
  </div>
48
63
  </div>
49
64
  {{{ if !config.hideCategoryLastPost }}}
50
- <div component="topic/teaser" class="teaser col-lg-6 col-12 {{{ if !config.theme.mobileTopicTeasers }}}d-none d-lg-block{{{ end }}}">
65
+ <div component="topic/teaser" class="teaser ps-5 ps-lg-0 col-lg-6 col-12 {{{ if !config.theme.mobileTopicTeasers }}}d-none d-lg-block{{{ end }}}">
51
66
  <!-- IMPORT partials/categories/lastpost.tpl -->
52
67
  </div>
53
68
  {{{ end }}}
@@ -105,7 +105,7 @@
105
105
  <i class="d-xl-none fa fa-fw text-xs text-muted opacity-75 fa-eye"></i>
106
106
  </div>
107
107
  </div>
108
- <div component="topic/teaser" class="meta teaser col-lg-6 col-12 {{{ if !config.theme.mobileTopicTeasers }}}d-none d-lg-block{{{ end }}}">
108
+ <div component="topic/teaser" class="meta teaser ps-5 ps-lg-0 col-lg-6 col-12 {{{ if !config.theme.mobileTopicTeasers }}}d-none d-lg-block{{{ end }}}">
109
109
  <div class="lastpost border-start border-2 lh-sm h-100 d-flex flex-column gap-1" style="border-color: {./category.bgColor}!important;">
110
110
  {{{ if ./unreplied }}}
111
111
  <div class="ps-2 text-xs">