<ul class="reactionSummaryList{if $isTiny|isset && $isTiny} reactionSummaryListTiny{/if} jsOnly" data-object-type="{$objectType}" data-object-id="{$objectID}">
{if $reactionData[$objectID]|isset && $reactionData[$objectID]->getReactions()|is_array}
{foreach from=$reactionData[$objectID]->getReactions() key=reactionTypeID item=reaction}
- <li class="reactCountButton jsTooltip" data-reaction-type-id="{$reactionTypeID}" title="{lang}wcf.reactions.summary.listReactions{/lang}">{@$reaction[renderedReactionIcon]} <span class="reactionCount">{$reaction[reactionCount]|shortUnit}</span></li>
+ <li class="reactCountButton jsTooltip" data-reaction-type-id="{$reactionTypeID}" title="{lang}wcf.reactions.summary.listReactions{/lang}"><span class="reactionCount">{$reaction[reactionCount]|shortUnit}</span> {@$reaction[renderedReactionIcon]}</li>
{/foreach}
{/if}
</ul>
// create element
var createdElement = elCreate('li');
createdElement.className = 'reactCountButton';
- createdElement.innerHTML = REACTION_TYPES[key].renderedIcon + ' ';
elData(createdElement, 'reaction-type-id', key);
var countSpan = elCreate('span');
countSpan.innerHTML = StringUtil.shortUnit(data[key]);
createdElement.appendChild(countSpan);
+ createdElement.innerHTML = createdElement.innerHTML + REACTION_TYPES[key].renderedIcon;
+
summaryList.appendChild(createdElement);
this._initReactionCountButton(createdElement, objectId);
}
img.reactionType {
- width: 16px;
- height: 16px;
+ width: 24px;
+ height: 24px;
+}
+
+.reactionSummaryList {
+ span.reactionCount::after {
+ content: ' × ';
+ }
}
.reactionPopoverContent {
li.reactCountButton {
display: inline;
- padding: 10px;
+ padding: 5px;
cursor: pointer;
- background-color: $wcfSidebarBackground;
color: $wcfContentDimmedText;
}
li.reactCountButton:hover {
- background-color: darken($wcfSidebarBackground, 5);
color: $wcfContentText;
}