diff options
author | mat <github@matdoes.dev> | 2022-02-20 21:38:14 -0600 |
---|---|---|
committer | mat <github@matdoes.dev> | 2022-02-20 21:38:14 -0600 |
commit | 13e5974114f759bae73f3bfd68c62ce9cfaf785e (patch) | |
tree | 8a196b27b8d4dece1dc2187332422a4e41423dfa /src/lib/Emoji.svelte | |
parent | 582409e7cb1598b65bee6d1023b77620bb3791af (diff) | |
download | skyblock-stats-13e5974114f759bae73f3bfd68c62ce9cfaf785e.tar.gz skyblock-stats-13e5974114f759bae73f3bfd68c62ce9cfaf785e.tar.bz2 skyblock-stats-13e5974114f759bae73f3bfd68c62ce9cfaf785e.zip |
add more stuff to profile and fix bugs
Diffstat (limited to 'src/lib/Emoji.svelte')
-rw-r--r-- | src/lib/Emoji.svelte | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/lib/Emoji.svelte b/src/lib/Emoji.svelte index 0e8f4a7..1869f37 100644 --- a/src/lib/Emoji.svelte +++ b/src/lib/Emoji.svelte @@ -1,17 +1,20 @@ <!-- @component - All the emojis inside this component will be turned into Twemojis. + 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 + import { twemojiHtml } from './utils' export let value: string </script> -<span> - {@html twemojiHtml(value)} -</span> +<span>{@html twemojiHtml(value)}</span> <style> :global(.emoji) { |