Move follower count to tab title. Closes #1698
This commit is contained in:
parent
8943be9bf9
commit
50b0bfbc4e
@ -831,7 +831,10 @@ export default class App extends Component {
|
||||
|
||||
if (federation.enabled) {
|
||||
TAB_CONTENT.push({
|
||||
label: 'Followers',
|
||||
label: html`Followers
|
||||
${federation.followerCount > 10
|
||||
? `${' '}(${federation.followerCount})`
|
||||
: null}`,
|
||||
content: html`<${Followers} />`,
|
||||
});
|
||||
}
|
||||
|
@ -185,11 +185,7 @@ export function FediverseFollowButton({ serverName, federationInfo, onClick }) {
|
||||
<${ExternalActionButton}
|
||||
onClick=${handleClick}
|
||||
action=${fediverseFollowAction}
|
||||
label=${`Follow ${
|
||||
federationInfo.followerCount > 10
|
||||
? ` (${federationInfo.followerCount})`
|
||||
: ''
|
||||
}`}
|
||||
label="Follow"
|
||||
/>
|
||||
</span>
|
||||
`;
|
||||
|
Loading…
x
Reference in New Issue
Block a user