diff options
author | mat <github@matdoes.dev> | 2022-02-21 22:39:38 -0600 |
---|---|---|
committer | mat <github@matdoes.dev> | 2022-02-21 22:39:38 -0600 |
commit | 55cddf1e2c746c6836b03f0761f0771bbc982730 (patch) | |
tree | 6201b17170a27b09635172d67c827a16ca78f60f /src/lib/Emoji.svelte | |
parent | 2071203061bfbb18f2c1991b45556b8ec47536a8 (diff) | |
download | skyblock-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.svelte | 13 |
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' |