ProfileInfoPanel: truncate bio

Fixes https://gitlab.com/soapbox-pub/soapbox/-/issues/1456
This commit is contained in:
Alex Gleason 2023-07-06 12:21:52 -05:00
parent c73cf80d26
commit 8da8f18a45
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

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