Skip to content

Commit

Permalink
fix ui bug with sign in button getting really large while in loading …
Browse files Browse the repository at this point in the history
…state
  • Loading branch information
Dan-Y-Ko committed Nov 14, 2024
1 parent ab8800b commit faceab2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/app/(main)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ export default function Layout({ children }: LayoutProps) {
}

if (isPending) {
return <Spinner />;
return (
<div className="flex min-h-screen items-center justify-center">
<Spinner />
</div>
);
}

// TODO: refactor
Expand Down
2 changes: 1 addition & 1 deletion src/components/Spinner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default function Spinner({
extraClasses,
}: SpinnerProps) {
return (
<div className="flex min-h-screen items-center justify-center">
<div className="flex justify-center">
<svg
className={`h-5 w-5 animate-spin ${color} ${extraClasses}`}
xmlns="http://www.w3.org/2000/svg"
Expand Down

0 comments on commit faceab2

Please sign in to comment.