fix spinner sizings

This commit is contained in:
mrjvs 2023-11-20 19:03:48 +01:00
parent 0c2bbd16a5
commit b69c1a4518
4 changed files with 3 additions and 5 deletions

View File

@ -1,5 +1,4 @@
.spinner {
font-size: 48px;
width: 1em;
height: 1em;
border: 0.12em solid var(--color,white);

View File

@ -6,5 +6,5 @@ export function LoadingSpinner() {
if (!isLoading) return null;
return <Spinner />;
return <Spinner className="text-4xl" />;
}

View File

@ -115,10 +115,10 @@ export function BackendTestPart() {
)}
<Button
theme="purple"
loading={testState.loading}
className="whitespace-nowrap"
onClick={runTests}
>
{testState.loading ? <Spinner className="text-base mr-2" /> : null}
Test backend
</Button>
</div>

View File

@ -113,8 +113,7 @@ export function WorkerTestPart() {
})}
<Divider />
<div className="flex justify-end">
<Button theme="purple" onClick={runTests}>
{testState.loading ? <Spinner className="text-base mr-2" /> : null}
<Button theme="purple" loading={testState.loading} onClick={runTests}>
Test workers
</Button>
</div>