Add floating badges to accounts (#8634)

* Add floating badges to accounts

* Adjust

* Reorder
This commit is contained in:
Jaco 2022-12-27 09:22:49 +02:00 committed by GitHub
parent 2a42d45bcb
commit 5c6df8466f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 5 deletions

View File

@ -480,7 +480,7 @@ function Account ({ account: { address, meta }, className = '', delegation, filt
onClick={_onFavorite}
/>
</td>
<td className='address all'>
<td className='address all relative'>
<AddressSmall
parentAddress={meta.parentAddress}
value={address}
@ -585,9 +585,7 @@ function Account ({ account: { address, meta }, className = '', delegation, filt
onClose={toggleUndelegate}
/>
)}
</td>
<td className='number together'>
<div className='badges'>
<div className='absolute'>
{meta.genesisHash
? <Badge color='transparent' />
: isDevelopment

View File

@ -168,7 +168,7 @@ function Overview ({ className = '', onStatusChange }: Props): React.ReactElemen
Object.values(ret).forEach((a): void => {
a[0][1] = 'start';
a[0][2] = 3;
a[0][2] = 2;
a.push(
[undefined, 'balances'],

View File

@ -259,6 +259,13 @@ export default React.memo(styled(Table)`
&.relative {
position: relative;
.absolute {
position: absolute;
right: 0.125rem;
top: 0.375rem;
white-space: nowrap;
}
}
&.overflow {