Merge branch 'truncate-bio' into 'develop'

ProfileInfoPanel: truncate bio

Closes #1456

See merge request soapbox-pub/soapbox!2598
environments/review-develop-3zknud/deployments/3616
Alex Gleason 2023-07-17 15:21:34 +00:00
commit 04659a74a4
1 zmienionych plików z 1 dodań i 2 usunięć

Wyświetl plik

@ -134,7 +134,6 @@ const ProfileInfoPanel: React.FC<IProfileInfoPanel> = ({ account, username }) =>
);
}
const content = { __html: account.note_emojified };
const deactivated = account.pleroma?.deactivated ?? false;
const displayNameHtml = deactivated ? { __html: intl.formatMessage(messages.deactivated) } : { __html: account.display_name_html };
const memberSinceDate = intl.formatDate(account.created_at, { month: 'long', year: 'numeric' });
@ -174,7 +173,7 @@ const ProfileInfoPanel: React.FC<IProfileInfoPanel> = ({ account, username }) =>
<ProfileStats account={account} />
{account.note.length > 0 && (
<Markup size='sm' dangerouslySetInnerHTML={content} />
<Markup size='sm' dangerouslySetInnerHTML={{ __html: account.note_emojified }} truncate />
)}
<div className='flex flex-col items-start gap-2 md:flex-row md:flex-wrap md:items-center'>