mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-02 20:43:36 +00:00
refactor: replace Loader2 with Spinner component across the application
This update standardizes the loading indicators by replacing all instances of Loader2 with the new Spinner component. The Spinner component provides a consistent look and feel for loading states throughout the UI, enhancing the user experience. Changes include: - Updated loading indicators in various components such as popovers, modals, and views. - Ensured that the Spinner component is used with appropriate sizes for different contexts. No functional changes were made; this is purely a visual and structural improvement.
This commit is contained in:
@@ -13,7 +13,6 @@ import {
|
||||
CheckSquare,
|
||||
Trash2,
|
||||
ImageIcon,
|
||||
Loader2,
|
||||
Settings,
|
||||
RotateCcw,
|
||||
Search,
|
||||
@@ -24,6 +23,7 @@ import {
|
||||
ArrowDown,
|
||||
} from 'lucide-react';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { Spinner } from '@/components/ui/spinner';
|
||||
import { cn } from '@/lib/utils';
|
||||
import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover';
|
||||
import { Slider } from '@/components/ui/slider';
|
||||
@@ -1743,7 +1743,7 @@ export function TerminalPanel({
|
||||
<div className="flex flex-col items-center gap-2 px-4 py-3 bg-blue-500/90 rounded-md text-white">
|
||||
{isProcessingImage ? (
|
||||
<>
|
||||
<Loader2 className="h-6 w-6 animate-spin" />
|
||||
<Spinner size="lg" />
|
||||
<span className="text-sm font-medium">Processing...</span>
|
||||
</>
|
||||
) : (
|
||||
@@ -1791,7 +1791,7 @@ export function TerminalPanel({
|
||||
)}
|
||||
{connectionStatus === 'reconnecting' && (
|
||||
<span className="text-[10px] px-1.5 py-0.5 rounded bg-yellow-500/20 text-yellow-500 flex items-center gap-1">
|
||||
<Loader2 className="h-2.5 w-2.5 animate-spin" />
|
||||
<Spinner size="xs" />
|
||||
Reconnecting...
|
||||
</span>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user