Skip to content

Commit 4b4578e

Browse files
authored
Merge pull request #174 from sathwikhbhat/fix/oversized-buttons
fix: add inline variant to Spinner to prevent button expansion
2 parents 06b4bf3 + eebe07e commit 4b4578e

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

frontend/src/components/Spinner.jsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
import React from 'react';
22

3-
const Spinner = () => {
3+
const Spinner = ({ inline = false }) => {
4+
if (inline) {
5+
return (
6+
<div className="w-5 h-5 border-2 border-dashed rounded-full animate-spin border-white"></div>
7+
);
8+
}
9+
410
return (
511
<div className="flex justify-center items-center py-10">
612
<div className="w-16 h-16 border-4 border-dashed rounded-full animate-spin border-blue-600"></div>

frontend/src/pages/SetupPage.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ const SetupPage = () => {
9494
>
9595
{loading ? (
9696
<>
97-
<Spinner />
97+
<Spinner inline />
9898
<span className="ml-2">Setting up...</span>
9999
</>
100100
) : (

0 commit comments

Comments
 (0)