File tree Expand file tree Collapse file tree 2 files changed +27
-0
lines changed
Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -67,5 +67,8 @@ useHydratedHead({
6767 <div border =" t base" py-2 >
6868 <StatusActions v-if =" actions" :status =" status" details :command =" command" />
6969 </div >
70+ <div border =" t base" py-2 >
71+ <StatusEmojiReaction v-if =" actions" :status =" status" details :command =" command" />
72+ </div >
7073 </div >
7174</template >
Original file line number Diff line number Diff line change 1+ <script setup lang="ts">
2+ import type { mastodon } from ' masto'
3+
4+ const props = defineProps <{
5+ status: mastodon .v1 .Status
6+ details? : boolean
7+ }>()
8+
9+ const {
10+ status,
11+ } = useStatusActions (props )
12+ </script >
13+
14+ <template >
15+ <div flex items-center class =" status-actions" >
16+ <div v-for =" (i, emoji) in status.emojiReactions" :key =" i" flex-inline gap-1 mr-4 text-secondary >
17+ <picture class =" custom-emoji" :alt =" `:${emoji.name}:`" :data-emoji-id =" emoji.name" :title =" emoji.name" >
18+ <source :srcset =" emoji.staticUrl" media =" (prefers-reduced-motion: reduce)" >
19+ <img :src =" emoji.url" :alt =" `:${emoji.name}:`" title =" " style =" " >
20+ </picture >
21+ <CommonLocalizedNumber :keypath =" emoji.count" :count =" emoji.count" />
22+ </div >
23+ </div >
24+ </template >
You can’t perform that action at this time.
0 commit comments