Skip to content
This repository has been archived by the owner on Dec 1, 2024. It is now read-only.

Commit

Permalink
Show Meower reactions properly
Browse files Browse the repository at this point in the history
  • Loading branch information
mybearworld committed Oct 23, 2024
1 parent 2ac22df commit 9ace00f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
8 changes: 7 additions & 1 deletion src/components/Post.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,13 @@ const PostBase = memo((props: PostBaseProps) => {
type="button"
>
<div className="flex items-center gap-2">
{reaction.emoji} {reaction.count}
{reaction.emoji.length === 24 ?
<img
src={`https://uploads.meower.org/emojis/${reaction.emoji}`}
className="h-6 min-h-6 w-6 min-w-6"
/>
: reaction.emoji}{" "}
{reaction.count}
</div>
</Button>
))}
Expand Down
7 changes: 6 additions & 1 deletion src/components/ReactionUsers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,12 @@ export const ReactionUsers = (props: ReactionUsersProps) => {
className="border-b-2 border-transparent text-xl aria-selected:border-lime-500 dark:aria-selected:border-lime-600"
key={reaction.emoji}
>
{reaction.emoji}
{reaction.emoji.length === 24 ?
<img
src={`https://uploads.meower.org/emojis/${encodeURIComponent(reaction.emoji)}`}
className="mb-1 h-6 min-h-6 w-6 min-w-6"
/>
: reaction.emoji}
</Tabs.Trigger>
))}
</Tabs.List>
Expand Down

0 comments on commit 9ace00f

Please sign in to comment.