From 0f0d41615be3baf3769d7bd6f3157916c9b3154a Mon Sep 17 00:00:00 2001 From: Jan Date: Wed, 26 Oct 2022 09:13:14 +0200 Subject: [PATCH] fix: properly align emoji name in autocompletion --- src/components/common/AutoComplete.tsx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/components/common/AutoComplete.tsx b/src/components/common/AutoComplete.tsx index 4691125e..0ba18214 100644 --- a/src/components/common/AutoComplete.tsx +++ b/src/components/common/AutoComplete.tsx @@ -432,7 +432,12 @@ export default function AutoComplete({ }) } onClick={onClick}> -
+
{match instanceof CustomEmoji ? ( )} - {`:${ + {`:${ match instanceof CustomEmoji ? match.name : match - }:`} + }:`}
{match instanceof CustomEmoji && match.parent.type == "Server" && (