Add .address class to Table (top & padding) (#2451)

This commit is contained in:
Jaco Greeff 2020-03-24 10:30:23 +01:00 committed by GitHub
parent 7aa1ee8c9b
commit ca6348ceaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with 19 additions and 14 deletions

View File

@ -211,7 +211,7 @@ function Account ({ address, className, filter, isFavorite, toggleFavorite }: Pr
/>
)}
</td>
<td className='top padtop'>
<td className='address'>
<AddressSmall
overrideName={
isEditingName

View File

@ -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

View File

@ -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'>

View File

@ -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'>

View File

@ -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'>

View File

@ -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} />

View File

@ -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'>

View File

@ -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}

View File

@ -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'>

View File

@ -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'>

View File

@ -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'>

View File

@ -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'>

View File

@ -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;
}
}