diff --git a/frontend_nuxt/components/BaseTimeline.vue b/frontend_nuxt/components/BaseTimeline.vue
index 6ac05331f..d381c6783 100644
--- a/frontend_nuxt/components/BaseTimeline.vue
+++ b/frontend_nuxt/components/BaseTimeline.vue
@@ -8,7 +8,7 @@
>
- {{ item.emoji }}
+
{{ item.content }}
@@ -74,8 +74,9 @@ export default {
}
.timeline-emoji {
- font-size: 20px;
- line-height: 1;
+ width: 20px;
+ height: 20px;
+ object-fit: contain;
}
.timeline-item::before {
diff --git a/frontend_nuxt/components/ReactionsGroup.vue b/frontend_nuxt/components/ReactionsGroup.vue
index 8465270ff..ac0996b77 100644
--- a/frontend_nuxt/components/ReactionsGroup.vue
+++ b/frontend_nuxt/components/ReactionsGroup.vue
@@ -9,7 +9,7 @@
>
- {{ reactionEmojiMap[r.type] }}
+
{{ totalCount }}
@@ -40,7 +40,9 @@
@click="toggleReaction(t)"
:class="{ selected: userReacted(t) }"
>
- {{ reactionEmojiMap[t] }}
{{ counts[t] }}
+
{{
+ counts[t]
+ }}
diff --git a/frontend_nuxt/utils/reactions.js b/frontend_nuxt/utils/reactions.js
index 15d59cadd..1fca94cb0 100644
--- a/frontend_nuxt/utils/reactions.js
+++ b/frontend_nuxt/utils/reactions.js
@@ -1,25 +1,32 @@
-export const reactionEmojiMap = {
- LIKE: 'β€οΈ',
- DISLIKE: 'π',
- RECOMMEND: 'π',
- ANGRY: 'π‘',
- FLUSHED: 'π³',
- STAR_STRUCK: 'π€©',
- ROFL: 'π€£',
- HOLDING_BACK_TEARS: 'π₯Ή',
- MIND_BLOWN: 'π€―',
- POOP: 'π©',
- CLOWN: 'π€‘',
- SKULL: 'β οΈ',
- FIRE: 'π₯',
- EYES: 'π',
- FROWN: 'βΉοΈ',
- HOT: 'π₯΅',
- EAGLE: 'π¦
',
- SPIDER: 'π·οΈ',
- BAT: 'π¦',
- CHINA: 'π¨π³',
- USA: 'πΊπΈ',
- JAPAN: 'π―π΅',
- KOREA: 'π°π·',
+const toCdnUrl = (emoji) => {
+ const codepoints = Array.from(emoji)
+ .map((c) => c.codePointAt(0).toString(16))
+ .join('_')
+ return `https://fonts.gstatic.com/s/e/notoemoji/latest/${codepoints}/emoji.svg`
+}
+
+export const reactionEmojiMap = {
+ LIKE: toCdnUrl('β€οΈ'),
+ DISLIKE: toCdnUrl('π'),
+ RECOMMEND: toCdnUrl('π'),
+ ANGRY: toCdnUrl('π‘'),
+ FLUSHED: toCdnUrl('π³'),
+ STAR_STRUCK: toCdnUrl('π€©'),
+ ROFL: toCdnUrl('π€£'),
+ HOLDING_BACK_TEARS: toCdnUrl('π₯Ή'),
+ MIND_BLOWN: toCdnUrl('π€―'),
+ POOP: toCdnUrl('π©'),
+ CLOWN: toCdnUrl('π€‘'),
+ SKULL: toCdnUrl('β οΈ'),
+ FIRE: toCdnUrl('π₯'),
+ EYES: toCdnUrl('π'),
+ FROWN: toCdnUrl('βΉοΈ'),
+ HOT: toCdnUrl('π₯΅'),
+ EAGLE: toCdnUrl('π¦
'),
+ SPIDER: toCdnUrl('π·οΈ'),
+ BAT: toCdnUrl('π¦'),
+ CHINA: toCdnUrl('π¨π³'),
+ USA: toCdnUrl('πΊπΈ'),
+ JAPAN: toCdnUrl('π―π΅'),
+ KOREA: toCdnUrl('π°π·'),
}