nodebb-theme-harmony 1.2.27 → 1.2.28

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.2.27",
3
+ "version": "1.2.28",
4
4
  "nbbpm": {
5
5
  "compatibility": "^3.5.0"
6
6
  },
package/scss/account.scss CHANGED
@@ -19,3 +19,9 @@
19
19
  }
20
20
  }
21
21
  }
22
+
23
+ [component="group/badge/item"]:first-child [component="group/order/up"],
24
+ [component="group/badge/item"]:last-child [component="group/order/down"] {
25
+ opacity: 0.65;
26
+ pointer-events: none;
27
+ }
@@ -31,20 +31,21 @@
31
31
  <div class="mb-2">
32
32
  <label class="form-label fw-bold" for="groupTitle">[[user:grouptitle]]</label>
33
33
 
34
- <select class="form-select mb-1" id="groupTitle" name="groupTitle" {{{ if allowMultipleBadges }}} size="{groupSelectSize}" multiple{{{ end }}}>
35
- <option value="">[[user:no-group-title]]</option>
34
+ <div class="d-flex flex-column gap-2" component="group/badge/list">
36
35
  {{{ each groups }}}
37
- {{{ if ./userTitleEnabled }}}
38
- <option value="{groups.displayName}" {{{ if ./selected }}}selected{{{ end }}}>{./userTitle}</option>
36
+ <div component="group/badge/item" class="d-flex gap-2 justify-content-between align-items-center" data-value="{./displayName}" data-selected="{./selected}">
37
+ <!-- IMPORT partials/groups/badge.tpl -->
38
+ <div class="d-flex gap-1">
39
+ <button component="group/toggle/hide" type="button" class="btn-ghost-sm {{{ if !./selected }}}hidden{{{ end }}}" title="[[user:hide-group-title]]"><i class="fa fa-fw fa-eye"></i></button>
40
+ <button component="group/toggle/show" type="button" class="btn-ghost-sm {{{ if ./selected }}}hidden{{{ end }}}" title="[[user:show-group-title]]"><i class="fa fa-fw fa-eye-slash"></i></button>
41
+ {{{ if allowMultipleBadges }}}
42
+ <button component="group/order/up" type="button" class="btn-ghost-sm" title="[[user:order-group-up]]"><i class="fa fa-fw fa-chevron-up"></i></button>
43
+ <button component="group/order/down" type="button" class="btn-ghost-sm" title="[[user:order-group-down]]"><i class="fa fa-fw fa-chevron-down"></i></button>
44
+ {{{ end }}}
45
+ </div>
46
+ </div>
39
47
  {{{ end }}}
40
- {{{ end }}}
41
- </select>
42
- {{{ if allowMultipleBadges }}}
43
- <div class="d-none d-md-block">
44
- <span class="form-text">[[user:group-order-help]]</span>
45
- <i role="button" component="group/order/up" class="fa fa-chevron-up"></i> <i role="button" component="group/order/down" class="fa fa-chevron-down"></i>
46
48
  </div>
47
- {{{ end }}}
48
49
  </div>
49
50
 
50
51
  {{{ if allowAboutMe }}}
@@ -68,19 +69,19 @@
68
69
  <div class="text-center">
69
70
  <ul class="list-group mb-3 text-sm text-nowrap">
70
71
  {{{ if allowProfilePicture }}}
71
- <a component="profile/change/picture" href="#" class="list-group-item px-1 text-decoration-none">[[user:change-picture]]</a>
72
+ <li class="list-group-item"><a component="profile/change/picture" href="#" class="text-decoration-none text-reset">[[user:change-picture]]</a></li>
72
73
  {{{ end }}}
73
74
  {{{ if !username:disableEdit }}}
74
- <a href="{config.relative_path}/user/{userslug}/edit/username" class="list-group-item px-1 text-decoration-none">[[user:change-username]]</a>
75
+ <li class="list-group-item"><a href="{config.relative_path}/user/{userslug}/edit/username" class="text-decoration-none text-reset">[[user:change-username]]</a></li>
75
76
  {{{ end }}}
76
77
  {{{ if !email:disableEdit }}}
77
- <a href="{config.relative_path}/user/{userslug}/edit/email" class="list-group-item px-1 text-decoration-none">[[user:change-email]]</a>
78
+ <li class="list-group-item"><a href="{config.relative_path}/user/{userslug}/edit/email" class="text-decoration-none text-reset">[[user:change-email]]</a></li>
78
79
  {{{ end }}}
79
80
  {{{ if canChangePassword }}}
80
- <a href="{config.relative_path}/user/{userslug}/edit/password" class="list-group-item px-1 text-decoration-none">[[user:change-password]]</a>
81
+ <li class="list-group-item"><a href="{config.relative_path}/user/{userslug}/edit/password" class="text-decoration-none text-reset">[[user:change-password]]</a></li>
81
82
  {{{ end }}}
82
83
  {{{ each editButtons }}}
83
- <a href="{config.relative_path}{./link}" class="list-group-item px-1 text-decoration-none">{./text}</a>
84
+ <li class="list-group-item"><a href="{config.relative_path}{./link}" class="text-decoration-none text-reset">{./text}</a></li>
84
85
  {{{ end }}}
85
86
  </ul>
86
87
 
@@ -87,8 +87,9 @@
87
87
  <input id="memberPostCids" type="text" class="form-control form-control-sm" value="{group.memberPostCids}">
88
88
  </div>
89
89
  </div>
90
-
91
- <button class="btn btn-link text-danger float-end" type="button" data-action="delete">[[groups:details.delete-group]]</button>
92
- <button class="btn btn-primary" type="button" data-action="update">[[global:save-changes]]</button>
90
+ <div class="d-flex justify-content-end gap-2">
91
+ <button class="btn btn-link text-danger" type="button" data-action="delete">[[groups:details.delete-group]]</button>
92
+ <button class="btn btn-primary" type="button" data-action="update">[[global:save-changes]]</button>
93
+ </div>
93
94
  </form>
94
95
  </div>