nodebb-theme-harmony 1.0.4 → 1.0.6

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.4",
3
+ "version": "1.0.6",
4
4
  "nbbpm": {
5
5
  "compatibility": "^3.0.0"
6
6
  },
@@ -18,12 +18,14 @@
18
18
  {messages.content}
19
19
  </div>
20
20
 
21
- {{{ if (!config.disableChatMessageEditing && messages.self ) }}}
22
- <div class="position-relative">
23
- <div class="btn-group border shadow-sm controls position-absolute small hover-d-block" style="bottom:5px; right:30px; display:none;">
21
+ {{{ if (isAdminOrGlobalMod || (!config.disableChatMessageEditing && messages.self)) }}}
22
+ <div component="chat/message/controls" class="position-relative">
23
+ <div class="btn-group border shadow-sm controls position-absolute small hover-d-block end-0" style="bottom:1rem;">
24
+ {{{ if (!config.disableChatMessageEditing && messages.self) }}}
24
25
  <button class="btn btn-sm btn-link" data-action="edit"><i class="fa fa-pencil"></i></button>
25
26
  <button class="btn btn-sm btn-link" data-action="delete"><i class="fa fa-trash"></i></button>
26
27
  <button class="btn btn-sm btn-link" data-action="restore"><i class="fa fa-repeat"></i></button>
28
+ {{{ end }}}
27
29
  {{{ if isAdminOrGlobalMod }}}
28
30
  <button class="btn btn-sm btn-link chat-ip" title="[[modules:chat.show-ip]]"><i class="fa fa-info-circle chat-ip-button"></i></button>
29
31
  {{{ end }}}