nodebb-theme-harmony 1.0.0-beta.60 → 1.0.0-beta.61

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": "1.0.0-beta.60",
3
+ "version": "1.0.0-beta.61",
4
4
  "nbbpm": {
5
5
  "compatibility": "^3.0.0"
6
6
  },
package/public/harmony.js CHANGED
@@ -234,8 +234,15 @@ $(document).ready(function () {
234
234
  }
235
235
 
236
236
  function fixPlaceholders() {
237
+ if (!config.loggedIn) {
238
+ return;
239
+ }
237
240
  ['notifications', 'chat'].forEach((type) => {
238
- const count = parseInt(document.querySelector(`[component="${type}/count"]`).innerText, 10);
241
+ const countEl = document.querySelector(`[component="${type}/count"]`);
242
+ if (!countEl) {
243
+ return;
244
+ }
245
+ const count = parseInt(countEl.innerText, 10);
239
246
  if (count > 1) {
240
247
  const listEls = document.querySelectorAll(`[component="${type}/list"]`);
241
248
  listEls.forEach((listEl) => {
@@ -9,12 +9,12 @@
9
9
  </div>
10
10
  {{{ end }}}
11
11
 
12
- <ul id="quick-search-results" class="quick-search-results list-unstyled mb-0 p-0 overflow-auto overscroll-behavior-contain" style="max-width: 400px; max-height: 500px;">
12
+ <ul id="quick-search-results" class="quick-search-results list-unstyled mb-0 p-0 pe-1 overflow-auto overscroll-behavior-contain" style="max-width: 400px; max-height: 500px;">
13
13
  <li role="separator" class="dropdown-divider d-none d-md-block"></li>
14
14
  {{{ each posts }}}
15
15
  <li data-tid="{posts.topic.tid}" data-pid="{posts.pid}" class="d-flex flex-column gap-1">
16
16
  <a href="{config.relative_path}/post/{posts.pid}"
17
- class="dropdown-item rounded-1 text-reset d-block text-truncate px-2 py-1">
17
+ class="btn-ghost-sm rounded-1 text-reset d-block text-truncate px-2 py-1">
18
18
  <span class="quick-search-title fw-semibold text-sm">{posts.topic.title}</span>
19
19
  <br/>
20
20
  <p class="snippet text-xs text-break text-wrap mb-0">
@@ -1,5 +1,5 @@
1
1
 
2
- <li class="nav-item mx-2" title="[[global:login]]">
2
+ <li class="nav-item mx-2 order-last order-md-first" title="[[global:login]]">
3
3
  <a class="nav-link nav-btn" href="{relative_path}/login">
4
4
  <span class="d-flex gap-2 align-items-center text-nowrap truncate-open">
5
5
  <span class="position-relative">