Adjust sub name display (#2113)

This commit is contained in:
Jaco Greeff 2020-01-13 17:48:07 +01:00 committed by GitHub
parent 9eb3b8f847
commit 0113c2db08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>
@ -321,6 +321,7 @@ export default styled(AccountName)`
.sub {
font-size: 0.75rem;
opacity: 0.75;
}
}