This commit is contained in:
ThatOneCalculator 2023-02-12 20:46:56 -08:00
parent edc5638385
commit 085de45d02
No known key found for this signature in database
GPG key ID: 8703CACD01000000

View file

@ -17,7 +17,11 @@
<template v-else> <template v-else>
<div :class="$style.tabs"> <div :class="$style.tabs">
<button v-for="reaction in reactions" :key="reaction" :class="[$style.tab, { [$style.tabActive]: tab === reaction }]" class="_button" @click="tab = reaction"> <button v-for="reaction in reactions" :key="reaction" :class="[$style.tab, { [$style.tabActive]: tab === reaction }]" class="_button" @click="tab = reaction">
<MkReactionIcon :reaction="reaction"/> <XReactionIcon
ref="reactionRef"
:reaction="reaction ? reaction.replace(/^:(\w+):$/, ':$1@.:') : reaction"
:custom-emojis="reactions"
/>
<span style="margin-left: 4px;">{{ note.reactions[reaction] }}</span> <span style="margin-left: 4px;">{{ note.reactions[reaction] }}</span>
</button> </button>
</div> </div>