mirror of
https://github.com/purrgrammer/grimoire.git
synced 2026-04-12 16:37:06 +02:00
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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user