From 6208ea8e43156cfa7253020c464153e59ae9d6f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Wed, 11 Jan 2023 23:45:43 +0100 Subject: [PATCH] Fix avatar size in profile hover card MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- .../features/ui/components/user-panel.tsx | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/app/soapbox/features/ui/components/user-panel.tsx b/app/soapbox/features/ui/components/user-panel.tsx index 0ccfe1631..cbc45047a 100644 --- a/app/soapbox/features/ui/components/user-panel.tsx +++ b/app/soapbox/features/ui/components/user-panel.tsx @@ -26,10 +26,10 @@ const UserPanel: React.FC = ({ accountId, action, badges, domain }) const fqn = useAppSelector((state) => displayFqn(state)); if (!account) return null; - const displayNameHtml = { __html: account.get('display_name_html') }; - const acct = !account.get('acct').includes('@') && domain ? `${account.get('acct')}@${domain}` : account.get('acct'); - const header = account.get('header'); - const verified = account.get('verified'); + const displayNameHtml = { __html: account.display_name_html }; + const acct = !account.acct.includes('@') && domain ? `${account.acct}@${domain}` : account.acct; + const header = account.header; + const verified = account.verified; return (
@@ -43,11 +43,11 @@ const UserPanel: React.FC = ({ accountId, action, badges, domain }) - + {action && ( @@ -57,7 +57,7 @@ const UserPanel: React.FC = ({ accountId, action, badges, domain }) - + @@ -77,11 +77,11 @@ const UserPanel: React.FC = ({ accountId, action, badges, domain }) - {account.get('followers_count') >= 0 && ( - + {account.followers_count >= 0 && ( + - {shortNumberFormat(account.get('followers_count'))} + {shortNumberFormat(account.followers_count)} @@ -90,11 +90,11 @@ const UserPanel: React.FC = ({ accountId, action, badges, domain }) )} - {account.get('following_count') >= 0 && ( - + {account.following_count >= 0 && ( + - {shortNumberFormat(account.get('following_count'))} + {shortNumberFormat(account.following_count)}