Small CardSummary adjustments (#3263)
* Small CardSummary adjustments * Adj. * Spacing
This commit is contained in:
parent
f4274055b2
commit
818668e9de
@ -44,7 +44,7 @@ function Summary ({ lastReward, numNominators, numValidators, totalStaked }: Pro
|
||||
<section className='ui--media-small'>
|
||||
{totalIssuance && (
|
||||
<CardSummary
|
||||
label={`${totalStaked?.gtn(0) ? `${t<string>('total staked')}/` : ''}${t<string>('total issuance')}`}
|
||||
label={`${totalStaked?.gtn(0) ? `${t<string>('total staked')} / ` : ''}${t<string>('total issuance')}`}
|
||||
progress={progressStake}
|
||||
>
|
||||
<div>
|
||||
|
||||
@ -138,7 +138,6 @@ export default React.memo(styled(CardSummary)`
|
||||
.isSecondary {
|
||||
font-size: 1rem;
|
||||
font-weight: 100;
|
||||
margin-top: 0.25rem;
|
||||
|
||||
.timer {
|
||||
min-width: 8rem;
|
||||
|
||||
@ -63,7 +63,7 @@ function Progress ({ className = '', isDisabled, total, value }: Props): React.R
|
||||
type='second'
|
||||
/>
|
||||
<div className='inner'>
|
||||
<div>{(angle * 100 / 360).toFixed(1)}%</div>
|
||||
<div>{Math.floor(angle * 100 / 360)}%</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
@ -137,9 +137,8 @@ export default React.memo(styled(Progress)`
|
||||
|
||||
div {
|
||||
line-height: 1;
|
||||
font-family: sans-serif;
|
||||
font-size: 1rem;
|
||||
font-weight: 500;
|
||||
font-size: 1.25rem;
|
||||
text-shadow: 0 0 2px #f5f4f3;
|
||||
}
|
||||
}
|
||||
`);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user