Small CardSummary adjustments (#3263)

* Small CardSummary adjustments

* Adj.

* Spacing
This commit is contained in:
Jaco Greeff 2020-07-24 21:17:03 +02:00 committed by GitHub
parent f4274055b2
commit 818668e9de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 6 deletions

View File

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

View File

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

View File

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