Size reaction pills to match the add reaction button

This commit is contained in:
Coracle-Bot 2026-09-09 01:14:24 +00:00
parent 696f9a3043
commit e3e688699f
2 changed files with 15 additions and 10 deletions

View file

@ -43,7 +43,10 @@
{deleteReaction} {deleteReaction}
{createReaction} {createReaction}
reactionClass="tip-right"> reactionClass="tip-right">
<EmojiButton {onEmoji} class="button button-neutral button-xs h-[26px] rounded-2xl"> <EmojiButton
{onEmoji}
aria-label="Add a reaction"
class="button button-neutral button-xs rounded-full">
<Icon icon={SmileCircle} size={4} /> <Icon icon={SmileCircle} size={4} />
</EmojiButton> </EmojiButton>
</ReactionSummary> </ReactionSummary>

View file

@ -14,15 +14,17 @@
</script> </script>
{#if event.content === "+" || event.content === ""} {#if event.content === "+" || event.content === ""}
<Icon icon={Heart} /> <Icon icon={Heart} size={4} />
{:else if event.content === "-"} {:else if event.content === "-"}
<Icon icon={ThumbsDown} /> <Icon icon={ThumbsDown} size={4} />
{:else} {:else}
{#each parse(event) as parsed, i (i)} <span class="text-base leading-none">
{#if isEmoji(parsed)} {#each parse(event) as parsed, i (i)}
<ContentEmoji value={parsed.value} /> {#if isEmoji(parsed)}
{:else} <ContentEmoji value={parsed.value} />
{@html renderAsHtml(parsed)} {:else}
{/if} {@html renderAsHtml(parsed)}
{/each} {/if}
{/each}
</span>
{/if} {/if}