refactor: enhance loading skeleton UI in GenerateReport

This commit is contained in:
Anish Sarkar 2026-03-23 02:55:35 +05:30
parent 3cee59e024
commit 74ef4bb414

View file

@ -63,10 +63,12 @@ type GenerateReportResult = z.infer<typeof GenerateReportResultSchema>;
function ContentSkeleton() { function ContentSkeleton() {
return ( return (
<div className="space-y-2"> <div className="h-[7rem] space-y-2">
<div className="h-3 w-full rounded bg-muted/60 animate-pulse" /> <div className="h-3 w-full rounded bg-muted/60 animate-pulse" />
<div className="h-3 w-[92%] rounded bg-muted/60 animate-pulse [animation-delay:100ms]" /> <div className="h-3 w-[92%] rounded bg-muted/60 animate-pulse [animation-delay:100ms]" />
<div className="h-3 w-[75%] rounded bg-muted/60 animate-pulse [animation-delay:200ms]" /> <div className="h-3 w-[75%] rounded bg-muted/60 animate-pulse [animation-delay:200ms]" />
<div className="h-3 w-[85%] rounded bg-muted/60 animate-pulse [animation-delay:300ms]" />
<div className="h-3 w-[60%] rounded bg-muted/60 animate-pulse [animation-delay:400ms]" />
</div> </div>
); );
} }