Fix reaction container to prevent message width expansion

Wrapped reactions in a scrollable container with proper constraints:
- inline-flex: displays inline with message metadata
- max-w-full: prevents expanding beyond message width
- overflow-x-auto: enables horizontal scrolling for many reactions
- hide-scrollbar: hides scrollbar for clean appearance

Messages with many reactions now stay within their width and scroll
horizontally without a visible scrollbar.
This commit is contained in:
Claude
2026-01-15 18:02:51 +00:00
parent e7406de230
commit f110b224e6

View File

@@ -134,14 +134,14 @@ export function MessageReactions({ messageId, relays }: MessageReactionsProps) {
if (aggregated.length === 0) return null;
return (
<>
<div className="inline-flex gap-1 max-w-full overflow-x-auto hide-scrollbar">
{aggregated.map((reaction) => (
<ReactionBadge
key={reaction.customEmoji?.shortcode || reaction.emoji}
reaction={reaction}
/>
))}
</>
</div>
);
}