fix: Fix various UI text wrapping and overflow issues (#34774)

This commit is contained in:
diondiondion 2025-05-23 09:07:05 +02:00 committed by GitHub
parent 02ac18da51
commit 5dda094daa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 60 additions and 34 deletions

View file

@ -0,0 +1,21 @@
import { FormattedMessage } from 'react-intl';
import { IconLogo } from 'mastodon/components/logo';
import { AuthorLink } from 'mastodon/features/explore/components/author_link';
export const MoreFromAuthor: React.FC<{ accountId: string }> = ({
accountId,
}) => (
<FormattedMessage
id='link_preview.more_from_author'
defaultMessage='More from {name}'
values={{ name: <AuthorLink accountId={accountId} /> }}
>
{(chunks) => (
<div className='more-from-author'>
<IconLogo />
{chunks}
</div>
)}
</FormattedMessage>
);