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
This commit is contained in:
commit
8fd089bfcb
|
@ -28,7 +28,7 @@ const ProfileStats: React.FC<IProfileStats> = ({ account, onClickHandler }) => {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<HStack alignItems='center' space={3}>
|
<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}>
|
<HStack alignItems='center' space={1}>
|
||||||
<Text theme='primary' weight='bold' size='sm'>
|
<Text theme='primary' weight='bold' size='sm'>
|
||||||
{shortNumberFormat(account.followers_count)}
|
{shortNumberFormat(account.followers_count)}
|
||||||
|
@ -39,7 +39,7 @@ const ProfileStats: React.FC<IProfileStats> = ({ account, onClickHandler }) => {
|
||||||
</HStack>
|
</HStack>
|
||||||
</NavLink>
|
</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}>
|
<HStack alignItems='center' space={1}>
|
||||||
<Text theme='primary' weight='bold' size='sm'>
|
<Text theme='primary' weight='bold' size='sm'>
|
||||||
{shortNumberFormat(account.following_count)}
|
{shortNumberFormat(account.following_count)}
|
||||||
|
|
|
@ -86,19 +86,6 @@ class UserPanel extends ImmutablePureComponent {
|
||||||
</Stack>
|
</Stack>
|
||||||
|
|
||||||
<HStack alignItems='center' space={3}>
|
<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 && (
|
{account.get('followers_count') >= 0 && (
|
||||||
<Link to={`/@${account.get('acct')}/followers`} title={intl.formatNumber(account.get('followers_count'))}>
|
<Link to={`/@${account.get('acct')}/followers`} title={intl.formatNumber(account.get('followers_count'))}>
|
||||||
<HStack alignItems='center' space={1}>
|
<HStack alignItems='center' space={1}>
|
||||||
|
|
|
@ -403,7 +403,7 @@ export function ModalContainer() {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ProfileHoverCard() {
|
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() {
|
export function CryptoDonate() {
|
||||||
|
|
Loading…
Reference in New Issue