Fix emoji size
Some checks failed
continuous-integration/drone/pr Build is failing
continuous-integration/drone/push Build is failing

This commit is contained in:
2025-12-03 16:10:56 +01:00
parent 3ba6543cb4
commit 996534c62b
2 changed files with 11 additions and 6 deletions

View File

@@ -16,9 +16,16 @@ function emojiUnicode(emoji: string): string {
return s.includes("f") ? s : `${s}-fe0f`; return s.includes("f") ? s : `${s}-fe0f`;
} }
export function EmojiIcon(p: { emojiKey: string }): React.ReactElement { export function EmojiIcon(p: {
emojiKey: string;
size?: number;
}): React.ReactElement {
const unified = emojiUnicode(p.emojiKey); const unified = emojiUnicode(p.emojiKey);
return ( return (
<Emoji unified={unified ?? ""} emojiStyle={EmojiStyle.NATIVE} size={18} /> <Emoji
unified={unified ?? ""}
emojiStyle={EmojiStyle.NATIVE}
size={p.size ?? 18}
/>
); );
} }

View File

@@ -465,11 +465,9 @@ function RoomMessage(p: {
}} }}
> >
<div style={{ margin: "0px 3px" }}> <div style={{ margin: "0px 3px" }}>
<EmojiIcon emojiKey={r} /> <EmojiIcon emojiKey={r} size={16} />
</div>
<div style={{ height: "2em", marginLeft: "2px" }}>
{reactions.length}
</div> </div>
<div style={{ marginLeft: "2px" }}>{reactions.length}</div>
</span> </span>
} }
/> />