mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-28 14:43:52 +03:00
Fix reaction possition when there is attachments (#3099)
This commit is contained in:
parent
f1d8dda5b4
commit
c7fb6e3087
1 changed files with 7 additions and 1 deletions
|
@ -151,7 +151,13 @@ function initReactionSelector(parent) {
|
|||
react.remove();
|
||||
}
|
||||
if (!resp.empty) {
|
||||
react = $('<div class="ui attached segment reactions"></div>').appendTo(content);
|
||||
react = $('<div class="ui attached segment reactions"></div>');
|
||||
var attachments = content.find('.segment.bottom:first');
|
||||
if (attachments.length > 0) {
|
||||
react.insertBefore(attachments);
|
||||
} else {
|
||||
react.appendTo(content);
|
||||
}
|
||||
react.html(resp.html);
|
||||
var hasEmoji = react.find('.has-emoji');
|
||||
for (var i = 0; i < hasEmoji.length; i++) {
|
||||
|
|
Loading…
Reference in a new issue