We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1d8dda commit c7fb6e3Copy full SHA for c7fb6e3
public/js/index.js
@@ -151,7 +151,13 @@ function initReactionSelector(parent) {
151
react.remove();
152
}
153
if (!resp.empty) {
154
- react = $('<div class="ui attached segment reactions"></div>').appendTo(content);
+ react = $('<div class="ui attached segment reactions"></div>');
155
+ var attachments = content.find('.segment.bottom:first');
156
+ if (attachments.length > 0) {
157
+ react.insertBefore(attachments);
158
+ } else {
159
+ react.appendTo(content);
160
+ }
161
react.html(resp.html);
162
var hasEmoji = react.find('.has-emoji');
163
for (var i = 0; i < hasEmoji.length; i++) {
0 commit comments