nodebb-theme-harmony 2.2.13 → 2.2.14

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.13",
3
+ "version": "2.2.14",
4
4
  "nbbpm": {
5
5
  "compatibility": "^4.0.0"
6
6
  },
@@ -97,18 +97,18 @@
97
97
 
98
98
  <h6 class="fw-bold">[[user:browsing]]</h6>
99
99
 
100
- <div class="form-check form-switch">
101
- <input class="form-check-input" type="checkbox" role="switch" id="openOutgoingLinksInNewTab" data-property="openOutgoingLinksInNewTab" {{{ if settings.openOutgoingLinksInNewTab }}}checked{{{ end }}}/>
102
- <label class="form-check-label text-sm" for="openOutgoingLinksInNewTab">[[user:open-links-in-new-tab]]</label>
100
+ <div class="mb-3">
101
+ <div class="d-flex gap-4 align-items-center justify-content-between mb-3">
102
+ <label class="form-label text-sm mb-0" for="unreadCutoff">[[user:unread.cutoff, {maximumUnreadCutoff}]]</label>
103
+ <input id="unreadCutoff" value="{settings.unreadCutoff}" type="number" class="form-control form-control-sm text-end" data-property="unreadCutoff" min="1" max="{maximumUnreadCutoff}" style="max-width: 64px;">
104
+ </div>
105
+ <p class="form-text text-xs">[[user:unread.cutoff-help]]</p>
103
106
  </div>
104
107
 
105
- {{{ if inTopicSearchAvailable }}}
106
108
  <div class="form-check form-switch">
107
- <input class="form-check-input" type="checkbox" role="switch" id="topicSearchEnabled" data-property="topicSearchEnabled" {{{ if settings.topicSearchEnabled }}}checked{{{ end }}}/>
108
- <label class="form-check-label text-sm" for="topicSearchEnabled">[[user:enable-topic-searching]]</label>
109
+ <input class="form-check-input" type="checkbox" role="switch" id="openOutgoingLinksInNewTab" data-property="openOutgoingLinksInNewTab" {{{ if settings.openOutgoingLinksInNewTab }}}checked{{{ end }}}/>
110
+ <label class="form-check-label text-sm" for="openOutgoingLinksInNewTab">[[user:open-links-in-new-tab]]</label>
109
111
  </div>
110
- <p class="form-text text-xs">[[user:topic-search-help]]</p>
111
- {{{ end }}}
112
112
 
113
113
  <div class="form-check form-switch">
114
114
  <input class="form-check-input" type="checkbox" role="switch" id="updateUrlWithPostIndex" data-property="updateUrlWithPostIndex" {{{ if settings.updateUrlWithPostIndex }}}checked{{{ end }}}/>
@@ -120,6 +120,14 @@
120
120
  <label class="form-check-label text-sm" for="scrollToMyPost">[[user:scroll-to-my-post]]</label>
121
121
  </div>
122
122
 
123
+ {{{ if inTopicSearchAvailable }}}
124
+ <div class="form-check form-switch">
125
+ <input class="form-check-input" type="checkbox" role="switch" id="topicSearchEnabled" data-property="topicSearchEnabled" {{{ if settings.topicSearchEnabled }}}checked{{{ end }}}/>
126
+ <label class="form-check-label text-sm" for="topicSearchEnabled">[[user:enable-topic-searching]]</label>
127
+ </div>
128
+ <p class="form-text text-xs">[[user:topic-search-help]]</p>
129
+ {{{ end }}}
130
+
123
131
  <hr/>
124
132
 
125
133
  <h6 class="fw-bold">[[global:pagination]]</h6>
@@ -128,13 +136,13 @@
128
136
  <input type="checkbox" role="switch" id="usePagination" class="form-check-input" data-property="usePagination" {{{ if settings.usePagination }}}checked{{{ end }}}>
129
137
  <label class="form-check-label text-sm" for="usePagination">[[user:paginate-description]]</label>
130
138
  </div>
131
- <div class="mb-2">
132
- <label class="form-label text-sm" for="topicsPerPage">[[user:topics-per-page]] ([[user:max-items-per-page, {maxTopicsPerPage}]])</label>
133
- <input type="text" class="form-control form-control-sm" id="topicsPerPage" data-property="topicsPerPage" value="{settings.topicsPerPage}">
139
+ <div class="d-flex gap-4 align-items-center justify-content-between mb-2">
140
+ <label class="form-label text-sm text-nowrap mb-0" for="topicsPerPage">[[user:topics-per-page]] ([[user:max-items-per-page, {maxTopicsPerPage}]])</label>
141
+ <input type="number" class="form-control form-control-sm text-end" id="topicsPerPage" data-property="topicsPerPage" value="{settings.topicsPerPage}" min="1" max="{maxTopicsPerPage}" style="max-width: 64px;">
134
142
  </div>
135
- <div>
136
- <label class="form-label text-sm" for="postsPerPage">[[user:posts-per-page]] ([[user:max-items-per-page, {maxPostsPerPage}]])</label>
137
- <input type="text" class="form-control form-control-sm" id="postsPerPage" data-property="postsPerPage" value="{settings.postsPerPage}">
143
+ <div class="d-flex gap-4 align-items-center justify-content-between">
144
+ <label class="form-label text-sm text-nowrap mb-0" for="postsPerPage">[[user:posts-per-page]] ([[user:max-items-per-page, {maxPostsPerPage}]])</label>
145
+ <input type="number" class="form-control form-control-sm text-end" id="postsPerPage" data-property="postsPerPage" value="{settings.postsPerPage}" min="1" max="{maxPostsPerPage}" style="max-width: 64px;">
138
146
  </div>
139
147
 
140
148
  <hr/>