Skip to content

Commit

Permalink
Merge pull request #13842 from nextcloud/bugfix/noid/emoji-font-for-r…
Browse files Browse the repository at this point in the history
…eaction

Bugfix/noid/emoji font for reaction
  • Loading branch information
Antreesy authored Nov 21, 2024
2 parents 8ba4f72 + 4e3bfde commit a0559d9
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<NcButton :type="userHasReacted(reaction) ? 'primary' : 'secondary'"
size="small"
@click="handleReactionClick(reaction)">
{{ reaction }} {{ reactionsCount(reaction) }}
<span class="reaction-emoji">{{ reaction }}</span> {{ reactionsCount(reaction) }}
</NcButton>
</template>

Expand Down Expand Up @@ -279,6 +279,8 @@ export default {
<style lang="scss" scoped>
.reactions-wrapper {
--minimal-button-width: 48px;
--font-family-emoji: 'Segoe UI Emoji', 'Segoe UI Symbol', 'Segoe UI', 'Apple Color Emoji', 'Twemoji Mozilla', 'Noto Color Emoji', 'EmojiOne Color', 'Android Emoji';

display: flex;
flex-wrap: wrap;
gap: var(--default-grid-baseline);
Expand All @@ -291,6 +293,10 @@ export default {
font-weight: normal;
}

.reaction-emoji {
font-family: var(--font-family-emoji);
}

.reaction-button--thumbnail {
height: var(--clickable-area-small);
width: var(--minimal-button-width);
Expand Down

0 comments on commit a0559d9

Please sign in to comment.