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