nodebb-theme-harmony 2.2.64 → 2.2.66

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.64",
3
+ "version": "2.2.66",
4
4
  "nbbpm": {
5
5
  "compatibility": "^4.0.0"
6
6
  },
@@ -45,7 +45,7 @@
45
45
  "@fontsource/poppins": "5.2.7"
46
46
  },
47
47
  "devDependencies": {
48
- "eslint": "10.1.0",
48
+ "eslint": "10.2.1",
49
49
  "eslint-config-nodebb": "^2.0.0"
50
50
  }
51
51
  }
@@ -41,6 +41,7 @@
41
41
  border-radius: 0;
42
42
  .list-container {
43
43
  max-height: 60vh!important;
44
+ max-height: 60dvh!important;
44
45
  overflow-y: auto!important;
45
46
  }
46
47
  }
@@ -54,6 +55,7 @@
54
55
  }
55
56
 
56
57
  max-height: 60vh!important;
58
+ max-height: 60dvh!important;
57
59
  overflow: auto!important;
58
60
  }
59
61
 
@@ -239,7 +239,7 @@
239
239
 
240
240
  <h6 class="fw-bold">[[user:notifications]]</h6>
241
241
  <div>
242
- <div class="row align-items-center">
242
+ <div class="row align-items-center mb-2">
243
243
  <div class="col-7">
244
244
  <label class="text-sm" for="upvote-notif-freq">[[user:upvote-notif-freq]]</label>
245
245
  </div>
@@ -253,6 +253,10 @@
253
253
  </select>
254
254
  </div>
255
255
  </div>
256
+ <div class="form-check form-switch mb-3">
257
+ <input class="form-check-input" type="checkbox" role="switch" id="hideReadNotifications" data-property="hideReadNotifications" {{{ if settings.hideReadNotifications }}}checked{{{ end }}} />
258
+ <label class="form-check-label text-sm" for="hideReadNotifications">[[user:hide-read-notifications]]</label>
259
+ </div>
256
260
  <hr />
257
261
  <table component="notification/table" class="table">
258
262
  <thead>
@@ -9,11 +9,13 @@
9
9
  <span component="notifications/count" class="visible-open badge rounded-1 bg-primary {{{ if !unreadCount.notification }}}hidden{{{ end }}}">{unreadCount.notification}</span>
10
10
  </a>
11
11
  <ul class="notifications-dropdown dropdown-menu p-1 shadow" role="menu">
12
+ {{{ if !config.hideReadNotifications }}}
12
13
  <li class="d-flex gap-1 align-items-center">
13
14
  <button type="button" class="btn btn-ghost btn-sm ff-secondary active px-3" data-filter="all">[[notifications:all]]</button>
14
15
  <button type="button" class="btn btn-ghost btn-sm ff-secondary d-flex align-items-center gap-2" data-filter="unread">[[unread:title]] <span component="notifications/count" class="{{{ if !unreadCount.notification }}}hidden{{{ end }}}">{unreadCount.notification}</span></button>
15
16
  </li>
16
17
  <li class="dropdown-divider"></li>
18
+ {{{ end }}}
17
19
  <li>
18
20
  <div component="notifications/list" class="list-container notification-list overscroll-behavior-contain pe-1 ff-base ghost-scrollbar">
19
21
  <div class="mb-2 p-1">