📱 feat: Add loading to mobile file list component.

This commit is contained in:
jarvis2f 2024-12-30 16:44:40 +08:00
parent a0b14ace3c
commit 913ee64b5c

View file

@ -196,7 +196,16 @@ export function FileList({ accountId, chatId }: FileListProps) {
/>
))}
</div>
<div ref={observerTarget} className="h-4" />
<div ref={observerTarget} className="h-4">
{isLoading && (
<div className="flex items-center justify-center">
<LoaderPinwheel
className="h-8 w-8 animate-spin"
style={{ strokeWidth: "0.8px" }}
/>
</div>
)}
</div>
</div>
);
}