nodebb-theme-persona 14.1.21 → 14.1.23

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.1.21",
3
+ "version": "14.1.23",
4
4
  "nbbpm": {
5
5
  "compatibility": "^4.0.0"
6
6
  },
package/scss/topic.scss CHANGED
@@ -117,12 +117,6 @@
117
117
  }
118
118
  }
119
119
 
120
- .stats {
121
- font-size: 12px;
122
- margin: 0px 2px 0px 2px;
123
- display: inline-block;
124
- }
125
-
126
120
  .content {
127
121
  margin-top: $post-padding;
128
122
  padding-bottom: 1px;
@@ -1,11 +1,11 @@
1
- <!-- IF ../isSection -->
2
- {../name}
3
- <!-- ELSE -->
4
- <!-- IF ../link -->
5
- <a href="{../link}" itemprop="url">
6
- <!-- ELSE -->
7
- <a href="{config.relative_path}/category/{../slug}" itemprop="url">
8
- <!-- ENDIF ../link -->
9
- {../name}
10
- </a>
1
+ <!-- IF ../isSection -->
2
+ {../name}
3
+ <!-- ELSE -->
4
+ <!-- IF ../link -->
5
+ <a href="{../link}" itemprop="url">
6
+ <!-- ELSE -->
7
+ <a href="{config.relative_path}/category/{../slug}" itemprop="url">
8
+ <!-- ENDIF ../link -->
9
+ {../name}
10
+ </a>
11
11
  <!-- ENDIF ../isSection -->
@@ -1,4 +1,4 @@
1
- {{{ if children.length }}}
1
+ {{{ if (children.length || hasMoreSubCategories) }}}
2
2
  <div class="subcategory">
3
3
  {{{ if hasMoreSubCategories }}}
4
4
  <div class="mb-2"><!-- IMPORT partials/category/selector-dropdown-left.tpl --></div>
@@ -11,7 +11,7 @@
11
11
  <!-- IMPORT partials/categories/item.tpl -->
12
12
  {{{end}}}
13
13
  </ul>
14
- {{{ if hasMoreSubCategories}}}
14
+ {{{ if (hasMoreSubCategories && children.length) }}}
15
15
  <button class="btn btn-ghost btn-sm mb-2" component="category/load-more-subcategories">[[category:x-more-categories, {subCategoriesLeft}]]</button>
16
16
  {{{ end }}}
17
17
  </div>
@@ -2,7 +2,6 @@
2
2
  <a class="d-inline-block" href="{./url}">
3
3
  <img class="rounded-1 bg-light" style="width:auto; max-width: 4rem; height: 3.33rem;object-fit: contain;" src="{./url}" />
4
4
  </a>
5
- {{{ end }}}
6
- {{{ if greaterthan(thumbs.length, "4") }}}
5
+ {{{ end }}}{{{ if greaterthan(thumbs.length, "4") }}}
7
6
  <button component="topic/thumb/list/expand" class="btn btn-light fw-semibold" style="width:auto; max-width: 5.33rem; height: 3.33rem; object-fit: contain;">+{increment(thumbs.length, "-3")}</button>
8
7
  {{{ end }}}