🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.
Center file error text
Edward Cuib9978c6207fb
diff --git a/client/src/components/SiteSettings/ImportManager.tsx b/client/src/components/SiteSettings/ImportManager.tsxindex 0fe62401c..975fed6c3 100644--- a/client/src/components/SiteSettings/ImportManager.tsx+++ b/client/src/components/SiteSettings/ImportManager.tsx@@ -55,7 +55,7 @@ interface FileValidationError {message: string;}-const MAX_FILE_SIZE = 100 * 1024 * 1024; // 100MB+const MAX_FILE_SIZE = 5 * 1024 * 1024; // 100MBconst ALLOWED_FILE_TYPES = ["text/csv"];const ALLOWED_EXTENSIONS = [".csv"];const DATA_SOURCES = [@@ -76,7 +76,7 @@ export function ImportManager({ siteId, disabled }: ImportManagerProps) {const resetFileInput = () => {setFile(null);- setFileError(null);+ // setFileError(null);if (fileInputRef.current) {fileInputRef.current.value = "";}@@ -277,10 +277,12 @@ export function ImportManager({ siteId, disabled }: ImportManagerProps) {{/* File Validation Error */}{fileError && (<Alert variant="destructive">- <AlertCircle className="h-4 w-4" />- <AlertDescription>- {fileError.message}- </AlertDescription>+ <div className="flex items-center gap-2">+ <AlertCircle className="h-4 w-4" />+ <AlertDescription>+ {fileError.message}+ </AlertDescription>+ </div></Alert>)}