Improve reaction badge sizing and spacing

- Increase custom emoji size from size-3 (12px) to size-3.5 (14px)
- Increase gap between emoji and count from gap-1 to gap-1.5
- Add object-contain to custom emoji images for proper aspect ratio
- Add leading-none to unicode emoji for consistent vertical alignment
- Results in better visual balance between custom and unicode emoji
This commit is contained in:
Claude
2026-01-15 18:42:46 +00:00
parent c0a739c9f2
commit 6e4e4ea8c0

View File

@@ -173,17 +173,17 @@ function ReactionBadge({ reaction }: { reaction: ReactionSummary }) {
return (
<span
className="inline-flex items-center gap-1 text-[10px] leading-tight"
className="inline-flex items-center gap-1.5 text-[10px] leading-tight"
title={tooltip}
>
{reaction.customEmoji ? (
<img
src={reaction.customEmoji.url}
alt={`:${reaction.customEmoji.shortcode}:`}
className="size-3 inline-block"
className="size-3.5 inline-block object-contain"
/>
) : (
<span className="text-xs">{reaction.emoji}</span>
<span className="text-xs leading-none">{reaction.emoji}</span>
)}
<span
className={cn(