Adjust spinner (smaller, real-size)

This commit is contained in:
Jaco Greeff 2020-07-23 11:24:29 +02:00
parent a8e19614cf
commit 3f797e7210
2 changed files with 4 additions and 7 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 123 KiB

After

Width:  |  Height:  |  Size: 65 KiB

View File

@ -21,7 +21,7 @@ function Spinner ({ className = '', label, variant = 'app' }: Props): React.Reac
return (
<div className={`${className} ui--Spinner ${variant}`}>
<img
className={`ui--Spinner--img${variant === 'push' ? '' : ' ui--highlight--bg'}`}
className={variant === 'push' ? '' : 'ui--highlight--bg'}
src={spinnerSrc as unknown as string}
/>
{isApp && <div className='text'>{label || t('Retrieving data')}</div>}
@ -34,15 +34,12 @@ export default React.memo(styled(Spinner)`
margin: 0 auto;
text-align: center;
.ui--Spinner--img {
border-radius: 2.5rem;
height: 2.5rem;
img {
border-radius: 10rem;
opacity: 0.75;
width: 2.5rem;
}
&.mini .ui--Spinner--img {
border-radius: 1.75rem;
&.mini img {
height: 1.75rem;
width: 1.75rem;
}