nodebb-theme-harmony 2.2.18 → 2.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-harmony",
3
- "version": "2.2.18",
3
+ "version": "2.2.20",
4
4
  "nbbpm": {
5
5
  "compatibility": "^4.0.0"
6
6
  },
package/public/harmony.js CHANGED
@@ -143,12 +143,10 @@ $(document).ready(function () {
143
143
  function setupDrafts() {
144
144
  require(['composer/drafts', 'bootbox'], function (drafts, bootbox) {
145
145
  const draftsEl = $('[component="sidebar/drafts"]');
146
-
146
+ const bottomBarDraftsEl = $('[component="bottombar"] [component="sidebar/drafts"]');
147
147
  function updateBadgeCount() {
148
148
  const count = drafts.getAvailableCount();
149
- if (count > 0) {
150
- draftsEl.removeClass('hidden');
151
- }
149
+ bottomBarDraftsEl.toggleClass('hidden', count === 0);
152
150
  $('[component="drafts/count"]').toggleClass('hidden', count <= 0).text(count);
153
151
  }
154
152
 
package/scss/topic.scss CHANGED
@@ -114,7 +114,7 @@ body.template-topic {
114
114
 
115
115
 
116
116
  [component="topic/thumb/list"] {
117
- &.thumbs-collapsed a.d-inline-block:nth-of-type(n+4) {
117
+ &.thumbs-collapsed a.d-inline-block:nth-of-type(n+3) {
118
118
  display: none!important;
119
119
  }
120
120
  > a {
@@ -3,5 +3,5 @@
3
3
  <img class="rounded-1 bg-light" style="width:auto; max-width: 5.33rem; height: 3.33rem; object-fit: contain;" src="{./url}" />
4
4
  </a>
5
5
  {{{ end }}}{{{ if greaterthan(thumbs.length, "4") }}}
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>
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, "-2")}</button>
7
7
  {{{ end }}}
@@ -31,7 +31,7 @@
31
31
 
32
32
  <div class="d-flex flex-column gap-3">
33
33
  <div class="d-flex gap-2 flex-wrap flex-column flex-md-row {{{ if config.theme.centerHeaderElements }}}justify-content-center{{{ else }}}justify-content-between{{{ end }}}">
34
- <div class="d-flex flex-column gap-3">
34
+ <div class="d-flex flex-column gap-3 flex-md-shrink-50">
35
35
  <h1 component="post/header" class="tracking-tight fw-semibold fs-3 mb-0 text-break {{{ if config.theme.centerHeaderElements }}}text-center{{{ end }}}">
36
36
  <span class="topic-title" component="topic/title">{title}</span>
37
37
  </h1>
@@ -57,7 +57,7 @@
57
57
  <div class="d-flex gap-2" component="topic/stats"><!-- IMPORT partials/topic/stats.tpl --></div>
58
58
  </div>
59
59
  </div>
60
- <div class="d-flex flex-wrap gap-2 align-items-start mt-2 hidden-empty {{{ if greaterthan(thumbs.length, "4") }}}thumbs-collapsed{{{ end }}}" component="topic/thumb/list"><!-- IMPORT partials/topic/thumbs.tpl --></div>
60
+ <div class="flex-shrink-1 d-flex flex-wrap gap-2 align-items-start mt-2 hidden-empty {{{ if greaterthan(thumbs.length, "4") }}}thumbs-collapsed{{{ end }}}" component="topic/thumb/list"><!-- IMPORT partials/topic/thumbs.tpl --></div>
61
61
  </div>
62
62
 
63
63
  <div class="row mb-4 mb-lg-0">