Size reaction pills to match the add reaction button
This commit is contained in:
parent
696f9a3043
commit
e3e688699f
2 changed files with 15 additions and 10 deletions
|
|
@ -43,7 +43,10 @@
|
|||
{deleteReaction}
|
||||
{createReaction}
|
||||
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} />
|
||||
</EmojiButton>
|
||||
</ReactionSummary>
|
||||
|
|
|
|||
|
|
@ -14,15 +14,17 @@
|
|||
</script>
|
||||
|
||||
{#if event.content === "+" || event.content === ""}
|
||||
<Icon icon={Heart} />
|
||||
<Icon icon={Heart} size={4} />
|
||||
{:else if event.content === "-"}
|
||||
<Icon icon={ThumbsDown} />
|
||||
<Icon icon={ThumbsDown} size={4} />
|
||||
{:else}
|
||||
{#each parse(event) as parsed, i (i)}
|
||||
{#if isEmoji(parsed)}
|
||||
<ContentEmoji value={parsed.value} />
|
||||
{:else}
|
||||
{@html renderAsHtml(parsed)}
|
||||
{/if}
|
||||
{/each}
|
||||
<span class="text-base leading-none">
|
||||
{#each parse(event) as parsed, i (i)}
|
||||
{#if isEmoji(parsed)}
|
||||
<ContentEmoji value={parsed.value} />
|
||||
{:else}
|
||||
{@html renderAsHtml(parsed)}
|
||||
{/if}
|
||||
{/each}
|
||||
</span>
|
||||
{/if}
|
||||
|
|
|
|||
Loading…
Reference in a new issue