@nodebb/nodebb-plugin-reactions 2.2.4 → 2.2.5

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/nodebb-plugin-reactions",
3
- "version": "2.2.4",
3
+ "version": "2.2.5",
4
4
  "nbbpm": {
5
5
  "compatibility": "^3.6.0"
6
6
  },
package/public/client.js CHANGED
@@ -166,7 +166,7 @@ $(document).ready(function () {
166
166
  reacted: isSelf && type === 'add',
167
167
  reactionImage: data.reactionImage,
168
168
  }, function (html) {
169
- $('[component="post/reactions"][data-pid="' + data.pid + '"]').append(html);
169
+ $('[component="post/reactions"][data-pid="' + data.pid + '"]').prepend(html);
170
170
  });
171
171
  } else {
172
172
  reactionEl.find('.reaction-emoji-count').attr('data-count', data.reactionCount);
@@ -27,8 +27,6 @@
27
27
  }
28
28
  }
29
29
  .reaction-add {
30
- margin-right: 10px;
31
- cursor: pointer;
32
30
  &.max-reactions {
33
31
  display: none !important;
34
32
  }
@@ -1,10 +1,10 @@
1
1
  {{{ if config.enablePostReactions }}}
2
2
  <span class="reactions" component="post/reactions" data-pid="{./pid}">
3
- <span class="reaction-add d-inline-block px-2 mx-1 btn-ghost-sm {{{ if ./maxReactionsReached }}}max-reactions{{{ end }}}" component="post/reaction/add" data-pid="{./pid}" title="[[reactions:add-reaction]]">
4
- <i class="fa fa-face-smile text-primary"></i>
5
- </span>
6
3
  {{{ each ./reactions }}}
7
4
  <!-- IMPORT partials/topic/reaction.tpl -->
8
5
  {{{ end }}}
6
+ <a href="#" class="reaction-add btn btn-ghost btn-sm {{{ if ./maxReactionsReached }}}max-reactions{{{ end }}}" component="post/reaction/add" data-pid="{./pid}" title="[[reactions:add-reaction]]">
7
+ <i class="fa fa-face-smile text-primary"></i>
8
+ </a>
9
9
  </span>
10
10
  {{{ end }}}