@nodebb/nodebb-plugin-reactions 2.1.2 → 2.1.4
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 +1 -1
- package/public/client.js +1 -1
- package/scss/reactions.scss +5 -1
package/package.json
CHANGED
package/public/client.js
CHANGED
|
@@ -200,7 +200,7 @@ $(document).ready(function () {
|
|
|
200
200
|
const chatContentEl = reactionEl.parents('[component="chat/message/content"]');
|
|
201
201
|
const isAtBottom = messages.isAtBottom(chatContentEl);
|
|
202
202
|
reactionEl.append(html);
|
|
203
|
-
if (isAtBottom
|
|
203
|
+
if (isAtBottom) {
|
|
204
204
|
messages.scrollToBottom(chatContentEl);
|
|
205
205
|
}
|
|
206
206
|
});
|
package/scss/reactions.scss
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
.reactions {
|
|
2
|
+
display: flex;
|
|
3
|
+
gap: 1;
|
|
2
4
|
.reaction {
|
|
3
5
|
border: 1px solid var(--bs-primary-bg-subtle);
|
|
4
6
|
display: inline-block;
|
|
@@ -6,8 +8,10 @@
|
|
|
6
8
|
padding: 2px 4px;
|
|
7
9
|
margin: 0 1px;
|
|
8
10
|
cursor: pointer;
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: center;
|
|
9
13
|
.emoji {
|
|
10
|
-
height: 18px;
|
|
14
|
+
height: 18px!important;
|
|
11
15
|
}
|
|
12
16
|
&.reacted {
|
|
13
17
|
border: 1px solid var(--bs-primary);
|