Fix layout of legacy reaction count buttons
authorJoshua Rüsweg <ruesweg@woltlab.com>
Thu, 1 Aug 2019 14:29:37 +0000 (16:29 +0200)
committerJoshua Rüsweg <ruesweg@woltlab.com>
Thu, 1 Aug 2019 14:30:32 +0000 (16:30 +0200)
wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Like/Handler.js

index 903ae3bddd2f4f9bb043b908d64231e68aeaddb5..eb42e97e27a4b0e97ddbe3d05cff149931a9b4df 100644 (file)
@@ -147,10 +147,9 @@ define(
                                        countSpan.innerHTML = StringUtil.shortUnit(elementData.users[key]);
                                        createdElement.appendChild(countSpan);
                                        
-                                       createdElement.innerHTML = createdElement.innerHTML + REACTION_TYPES[key].renderedIcon;
+                                       createdElement.innerHTML = REACTION_TYPES[key].renderedIcon + createdElement.innerHTML;
                                        
                                        summaryList.appendChild(createdElement);
-                                       
                                }
                                
                                if (isSummaryPosition) {