Merge branch 'improve-stats' into 'develop'

Remove "status count" from profile popper to offer more breathing room

See merge request soapbox-pub/soapbox-fe!1398
unauthorized
Justin 2022-05-16 18:55:50 +00:00
commit 8fd089bfcb
4 zmienionych plików z 3 dodań i 16 usunięć

Wyświetl plik

@ -28,7 +28,7 @@ const ProfileStats: React.FC<IProfileStats> = ({ account, onClickHandler }) => {
return (
<HStack alignItems='center' space={3}>
<NavLink to={`/@${account.acct}/followers`} onClick={onClickHandler} title={intl.formatNumber(account.followers_count)}>
<NavLink to={`/@${account.acct}/followers`} onClick={onClickHandler} title={intl.formatNumber(account.followers_count)} className='hover:underline'>
<HStack alignItems='center' space={1}>
<Text theme='primary' weight='bold' size='sm'>
{shortNumberFormat(account.followers_count)}
@ -39,7 +39,7 @@ const ProfileStats: React.FC<IProfileStats> = ({ account, onClickHandler }) => {
</HStack>
</NavLink>
<NavLink to={`/@${account.acct}/following`} onClick={onClickHandler} title={intl.formatNumber(account.following_count)}>
<NavLink to={`/@${account.acct}/following`} onClick={onClickHandler} title={intl.formatNumber(account.following_count)} className='hover:underline'>
<HStack alignItems='center' space={1}>
<Text theme='primary' weight='bold' size='sm'>
{shortNumberFormat(account.following_count)}

Wyświetl plik

@ -86,19 +86,6 @@ class UserPanel extends ImmutablePureComponent {
</Stack>
<HStack alignItems='center' space={3}>
{account.get('statuses_count') >= 0 && (
<Link to={`/@${account.get('acct')}`} title={intl.formatNumber(account.get('statuses_count'))}>
<HStack alignItems='center' space={1}>
<Text theme='primary' weight='bold' size='sm'>
{shortNumberFormat(account.get('statuses_count'))}
</Text>
<Text weight='bold' size='sm'>
<FormattedMessage className='user-panel-stats-item__label' id='account.posts' defaultMessage='Posts' />
</Text>
</HStack>
</Link>
)}
{account.get('followers_count') >= 0 && (
<Link to={`/@${account.get('acct')}/followers`} title={intl.formatNumber(account.get('followers_count'))}>
<HStack alignItems='center' space={1}>

Wyświetl plik

@ -403,7 +403,7 @@ export function ModalContainer() {
}
export function ProfileHoverCard() {
return import(/* webpackChunkName: "features/ui" */'soapbox/components/profile_hover_card');
return import(/* webpackChunkName: "features/ui" */'soapbox/components/profile-hover-card');
}
export function CryptoDonate() {