Add .address class to Table (top & padding) (#2451)
This commit is contained in:
parent
7aa1ee8c9b
commit
ca6348ceaa
@ -211,7 +211,7 @@ function Account ({ address, className, filter, isFavorite, toggleFavorite }: Pr
|
||||
/>
|
||||
)}
|
||||
</td>
|
||||
<td className='top padtop'>
|
||||
<td className='address'>
|
||||
<AddressSmall
|
||||
overrideName={
|
||||
isEditingName
|
||||
|
||||
@ -161,7 +161,7 @@ function Address ({ address, className, filter, isFavorite, toggleFavorite }: Pr
|
||||
onClick={_onFavorite}
|
||||
/>
|
||||
</td>
|
||||
<td className='top padtop'>
|
||||
<td className='address'>
|
||||
<AddressSmall
|
||||
overrideName={
|
||||
isEditingName
|
||||
|
||||
@ -25,7 +25,7 @@ function Candidate ({ className, address, balance, isPrime, voters }: Props): Re
|
||||
|
||||
return (
|
||||
<tr className={`${className} ${isPrime ? 'council--isPrime' : ''}`}>
|
||||
<td className='top padtop'>
|
||||
<td className='address'>
|
||||
<AddressSmall value={address} />
|
||||
</td>
|
||||
<td className='council--prime'>
|
||||
|
||||
@ -27,7 +27,7 @@ function Proposal ({ className, value: { balance, hash, index, proposal, propose
|
||||
return (
|
||||
<tr className={className}>
|
||||
<td className='number top'><h1>{formatNumber(index)}</h1></td>
|
||||
<td className='top padtop'>
|
||||
<td className='address'>
|
||||
<AddressSmall value={proposer} />
|
||||
</td>
|
||||
<td className='number together top'>
|
||||
|
||||
@ -36,7 +36,7 @@ export default function Candidate ({ allMembers, isMember, ownMembers, value: {
|
||||
|
||||
return (
|
||||
<tr>
|
||||
<td className='top padtop'>
|
||||
<td className='address'>
|
||||
<AddressSmall value={accountId} />
|
||||
</td>
|
||||
<td className='number top'>
|
||||
|
||||
@ -39,7 +39,7 @@ export default function Defender ({ className, info, isMember, ownMembers }: Pro
|
||||
<Table>
|
||||
<Table.Body>
|
||||
<tr>
|
||||
<td className='top padtop'>
|
||||
<td className='address'>
|
||||
<AddressSmall value={info.defender} />
|
||||
</td>
|
||||
<VoteDisplay votes={votes} />
|
||||
|
||||
@ -21,7 +21,7 @@ function Member ({ className, isHead, value: { accountId, strikes } }: Props): R
|
||||
|
||||
return (
|
||||
<tr className={`${className} ${isHead && 'society--isHead'}`}>
|
||||
<td className='top padtop'>
|
||||
<td className='address'>
|
||||
<AddressSmall value={accountId} />
|
||||
</td>
|
||||
<td className='society--head'>
|
||||
|
||||
@ -193,7 +193,7 @@ function Account ({ allStashes, className, isOwnStash, next, onUpdateType, rewar
|
||||
}
|
||||
</td>
|
||||
)}
|
||||
<td className='top padtop'>
|
||||
<td className='address'>
|
||||
<BondExtra
|
||||
controllerId={controllerId}
|
||||
isOpen={isBondExtraOpen}
|
||||
|
||||
@ -142,7 +142,7 @@ function Address ({ address, className, filterName, hasQueries, isAuthor, isElec
|
||||
onlineCount={onlineCount}
|
||||
onlineMessage={onlineMessage}
|
||||
/>
|
||||
<td className='top padtop'>
|
||||
<td className='address'>
|
||||
<AddressSmall value={address} />
|
||||
</td>
|
||||
<td className='top'>
|
||||
|
||||
@ -35,7 +35,7 @@ function Validator ({ info: { accountId, bondOther, bondOwn, bondTotal, commissi
|
||||
toggleFavorite={toggleFavorite}
|
||||
/>
|
||||
<td className='number'>{formatNumber(rankOverall)}</td>
|
||||
<td className='top padtop'>
|
||||
<td className='address'>
|
||||
<AddressSmall value={accountId} />
|
||||
</td>
|
||||
<td className='number'>
|
||||
|
||||
@ -33,7 +33,7 @@ function Members ({ className, members, prime }: Props): React.ReactElement<Prop
|
||||
className={isPrime ? 'techcomm--isPrime' : ''}
|
||||
key={accountId.toString()}
|
||||
>
|
||||
<td className='all top padtop'>
|
||||
<td className='all address'>
|
||||
<AddressSmall value={accountId} />
|
||||
</td>
|
||||
<td className='right techcomm--prime'>
|
||||
|
||||
@ -29,7 +29,7 @@ function ProposalDisplay ({ className, isMember, proposal: { council, id, propos
|
||||
<td className='number top'>
|
||||
<h1>{formatNumber(id)}</h1>
|
||||
</td>
|
||||
<td className='top padtop'>
|
||||
<td className='address'>
|
||||
<AddressSmall value={proposal.proposer} />
|
||||
</td>
|
||||
<td className='top'>
|
||||
|
||||
@ -103,6 +103,11 @@ const Memo = React.memo(styled(Table)`
|
||||
}
|
||||
}
|
||||
|
||||
&.address {
|
||||
padding: 0.85rem 1rem;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
&.number {
|
||||
text-align: right;
|
||||
}
|
||||
@ -122,13 +127,13 @@ const Memo = React.memo(styled(Table)`
|
||||
margin-top: -0.25rem;
|
||||
|
||||
.ui--AddressMini-label {
|
||||
margin-bottom: 0.25rem;
|
||||
margin-bottom: 0rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.padtop {
|
||||
padding: 0.75rem;
|
||||
padding-top: 1.1rem;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user