-
-
Notifications
You must be signed in to change notification settings - Fork 566
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: partially support read-only emoji reactions
- Loading branch information
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<script setup lang="ts"> | ||
import type { mastodon } from 'masto' | ||
const props = defineProps<{ | ||
status: mastodon.v1.Status | ||
details?: boolean | ||
}>() | ||
const { | ||
status, | ||
} = useStatusActions(props) | ||
</script> | ||
|
||
<template> | ||
<div flex items-center class="status-actions"> | ||
<div v-for="(i, emoji) in status.emojiReactions" :key="i" flex-inline gap-1 mr-4 text-secondary> | ||
<picture class="custom-emoji" :alt="`:${emoji.name}:`" :data-emoji-id="emoji.name" :title="emoji.name"> | ||
Check failure on line 17 in components/status/StatusEmojiReaction.vue GitHub Actions / ci
Check failure on line 17 in components/status/StatusEmojiReaction.vue GitHub Actions / ci
|
||
<source :srcset="emoji.staticUrl" media="(prefers-reduced-motion: reduce)"> | ||
<img :src="emoji.url" :alt="`:${emoji.name}:`" title="" style=""> | ||
Check failure on line 19 in components/status/StatusEmojiReaction.vue GitHub Actions / ci
|
||
</picture> | ||
<CommonLocalizedNumber | ||
:keypath="emoji.count" | ||
:count="emoji.count" | ||
/> | ||
</div> | ||
</div> | ||
</template> |