mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-03 08:02:36 +09:00 
			
		
		
		
	Fix reaction possition when there is attachments (#3099)
This commit is contained in:
		@@ -151,7 +151,13 @@ function initReactionSelector(parent) {
 | 
				
			|||||||
                    react.remove();
 | 
					                    react.remove();
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
                if (!resp.empty) {
 | 
					                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);
 | 
					                    react.html(resp.html);
 | 
				
			||||||
                    var hasEmoji = react.find('.has-emoji');
 | 
					                    var hasEmoji = react.find('.has-emoji');
 | 
				
			||||||
                    for (var i = 0; i < hasEmoji.length; i++) {
 | 
					                    for (var i = 0; i < hasEmoji.length; i++) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user