allow customs

This commit is contained in:
FloatingGhost 2022-06-08 02:40:20 +01:00
parent 41991bcac2
commit 170a406cad

View file

@ -11,8 +11,21 @@
@click="emojiOnClick(reaction.name, $event)" @click="emojiOnClick(reaction.name, $event)"
@mouseenter="fetchEmojiReactionsByIfMissing()" @mouseenter="fetchEmojiReactionsByIfMissing()"
> >
<span class="reaction-emoji">{{ reaction.name }}</span> <span
<span>{{ reaction.count }}</span> v-if="reaction.url !== null"
>
<img
:src="reaction.url"
class="reaction-emoji"
>
{{ reaction.count }}
</span>
<span v-else>
<span class="reaction-emoji">
{{ reaction.name }}
</span>
<span>{{ reaction.count }}</span>
</span>
</button> </button>
</UserListPopover> </UserListPopover>
<a <a
@ -45,7 +58,7 @@
justify-content: center; justify-content: center;
box-sizing: border-box; box-sizing: border-box;
.reaction-emoji { .reaction-emoji {
width: 1.25em; width: 2.55em;
margin-right: 0.25em; margin-right: 0.25em;
} }
&:focus { &:focus {