mirror of https://github.com/kortix-ai/suna.git
center loader
This commit is contained in:
parent
6e7d16ff15
commit
d2180bada3
|
@ -3,7 +3,7 @@
|
|||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "next dev --turbopack",
|
||||
"dev": "next dev",
|
||||
"build": "next build",
|
||||
"start": "next start",
|
||||
"lint": "next lint",
|
||||
|
|
|
@ -366,7 +366,7 @@ export function FileAttachment({
|
|||
}}
|
||||
title={filename}
|
||||
>
|
||||
<div className="absolute inset-0 flex items-end justify-center pb-4">
|
||||
<div className="absolute inset-0 flex items-center justify-center">
|
||||
<Loader2 className="h-8 w-8 text-primary animate-spin" />
|
||||
</div>
|
||||
</button>
|
||||
|
@ -590,19 +590,19 @@ export function FileAttachment({
|
|||
|
||||
{/* Loading state */}
|
||||
{fileContentLoading && !isPdf && (
|
||||
<div className="absolute inset-0 flex items-end justify-center bg-background/50 z-10 pb-8">
|
||||
<div className="absolute inset-0 flex items-center justify-center bg-background/50 z-10">
|
||||
<Loader2 className="h-8 w-8 text-primary animate-spin" />
|
||||
</div>
|
||||
)}
|
||||
|
||||
{isPdf && pdfLoading && !pdfBlobUrl && (
|
||||
<div className="absolute inset-0 flex items-end justify-center bg-background/50 z-10 pb-8">
|
||||
<div className="absolute inset-0 flex items-center justify-center bg-background/50 z-10">
|
||||
<Loader2 className="h-8 w-8 text-primary animate-spin" />
|
||||
</div>
|
||||
)}
|
||||
|
||||
{isXlsx && xlsxLoading && !xlsxBlobUrl && (
|
||||
<div className="absolute inset-0 flex items-end justify-center bg-background/50 z-10 pb-8">
|
||||
<div className="absolute inset-0 flex items-center justify-center bg-background/50 z-10">
|
||||
<Loader2 className="h-8 w-8 text-primary animate-spin" />
|
||||
</div>
|
||||
)}
|
||||
|
|
Loading…
Reference in New Issue