nodebb-theme-harmony 1.2.52 → 1.2.53

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.52",
3
+ "version": "1.2.53",
4
4
  "nbbpm": {
5
5
  "compatibility": "^3.7.0"
6
6
  },
@@ -70,19 +70,29 @@
70
70
  {{{ each moderationNotes }}}
71
71
  <hr/>
72
72
 
73
- <div>
74
- <a href="{{{ if ./user.userslug }}}{config.relative_path}/user/{./user.userslug}{{{ else }}}#{{{ end }}}">{buildAvatar(./user, "24px", true)}</a>
75
- <strong>
76
- <a href="{{{ if ./user.userslug }}}{config.relative_path}/user/{./user.userslug}{{{ else }}}#{{{ end }}}" itemprop="author" data-username="{./user.username}" data-uid="{./user.uid}">{./user.username}</a>
77
- </strong>
73
+ <div data-id="{./id}">
74
+ <div class="mb-1">
75
+ <a href="{{{ if ./user.userslug }}}{config.relative_path}/user/{./user.userslug}{{{ else }}}#{{{ end }}}">{buildAvatar(./user, "24px", true)}</a>
76
+
77
+ <a href="{{{ if ./user.userslug }}}{config.relative_path}/user/{./user.userslug}{{{ else }}}#{{{ end }}}" class="fw-bold" itemprop="author" data-username="{./user.username}" data-uid="{./user.uid}">{./user.username}</a>
78
78
 
79
- <div class="visible-xs-inline-block visible-sm-inline-block visible-md-inline-block visible-lg-inline-block">
80
79
  <span class="timeago" title="{./timestampISO}"></span>
81
80
  </div>
82
- <br />
83
81
 
84
- <div class="content">
85
- {./note}
82
+
83
+ <div component="account/moderation-note/content-area" class="d-flex flex-column">
84
+ <div class="content">
85
+ {./note}
86
+ </div>
87
+ <button component="account/moderation-note/edit" class="btn btn-sm btn-link align-self-end">[[topic:edit]]</button>
88
+ </div>
89
+
90
+ <div component="account/moderation-note/edit-area" class="d-flex flex-column gap-2">
91
+ <textarea class="form-control w-100 overflow-hidden">{./rawNote}</textarea>
92
+ <div class="align-self-end">
93
+ <button component="account/moderation-note/cancel-edit" class="btn btn-sm btn-link text-danger align-self-end">[[global:cancel]]</button>
94
+ <button component="account/moderation-note/save-edit" class="btn btn-sm btn-primary align-self-end">[[global:save]]</button>
95
+ </div>
86
96
  </div>
87
97
  </div>
88
98
  {{{ end }}}