From 55cddf1e2c746c6836b03f0761f0771bbc982730 Mon Sep 17 00:00:00 2001
From: mat <github@matdoes.dev>
Date: Mon, 21 Feb 2022 22:39:38 -0600
Subject: fix layout shift

---
 src/lib/Emoji.svelte | 13 ++++---------
 1 file changed, 4 insertions(+), 9 deletions(-)

(limited to 'src/lib/Emoji.svelte')

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'
 
-- 
cgit 

