ProfileInfoPanel: truncate bio
Fixes https://gitlab.com/soapbox-pub/soapbox/-/issues/1456
This commit is contained in:
parent
c73cf80d26
commit
8da8f18a45
1 changed files with 1 additions and 2 deletions
|
@ -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'>
|
||||
|
|
Loading…
Reference in a new issue