aboutsummaryrefslogtreecommitdiff
path: root/src/lib/Emoji.svelte
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-02-21 22:39:38 -0600
committermat <github@matdoes.dev>2022-02-21 22:39:38 -0600
commit55cddf1e2c746c6836b03f0761f0771bbc982730 (patch)
tree6201b17170a27b09635172d67c827a16ca78f60f /src/lib/Emoji.svelte
parent2071203061bfbb18f2c1991b45556b8ec47536a8 (diff)
downloadskyblock-stats-55cddf1e2c746c6836b03f0761f0771bbc982730.tar.gz
skyblock-stats-55cddf1e2c746c6836b03f0761f0771bbc982730.tar.bz2
skyblock-stats-55cddf1e2c746c6836b03f0761f0771bbc982730.zip
fix layout shift
Diffstat (limited to 'src/lib/Emoji.svelte')
-rw-r--r--src/lib/Emoji.svelte13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/lib/Emoji.svelte b/src/lib/Emoji.svelte
index 1869f37..4eee2ea 100644
--- a/src/lib/Emoji.svelte
+++ b/src/lib/Emoji.svelte
@@ -1,13 +1,8 @@
-<!--
- @component
-
- All the emojis inside the value will be turned into Twemojis.
--->
<script lang="ts">
- // Interestingly, the comment above adds whitespace so we don't need to add
- // padding before the emoji like we usually would.
- // This is very likely a SvelteKit bug, so when it's fixed we should add
- // `margin-left: .25em` to .profile-emoji
+ // All the emojis inside the value will be turned into Twemojis.
+
+ // Note: We can't make an @component comment because SvelteKit is dumb and
+ // will replace the comment with whitespace
import { twemojiHtml } from './utils'