Skip to content

Commit

Permalink
Adjust sub name display (polkadot-js#2113)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacogr authored and jordy25519 committed Feb 20, 2020
1 parent 24ad1d0 commit fa822d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/react-components/src/AccountName.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ function AccountName ({ children, className, defaultName, label, onClick, overri
/>
{
displayParent
? <span className={`name ${isGood && 'isGood'}`}>{displayParent}/{displayName}</span>
? <span className={`name ${isGood && 'isGood'}`}><span className='top'>{displayParent}</span><span className='sub'>/{displayName}</span></span>
: <span className={`name ${isGood && 'isGood'}`}>{displayName}</span>
}
</div>
Expand Down Expand Up @@ -321,6 +321,7 @@ export default styled(AccountName)`
.sub {
font-size: 0.75rem;
opacity: 0.75;
}
}
Expand Down

0 comments on commit fa822d1

Please sign in to comment.