yangdx commited on
Commit
b212444
·
1 Parent(s): f3d2cd1

UI adaptation for dark mode

Browse files
lightrag_webui/src/components/ui/FileUploader.tsx CHANGED
@@ -365,7 +365,7 @@ function Progress({ value, error }: ProgressProps) {
365
  <div
366
  className={cn(
367
  'h-full transition-all',
368
- error ? 'bg-destructive' : 'bg-primary'
369
  )}
370
  style={{ width: `${value}%` }}
371
  />
@@ -387,7 +387,7 @@ function FileCard({ file, progress, error, onRemove }: FileCardProps) {
387
  <div className="relative flex items-center gap-2.5">
388
  <div className="flex flex-1 gap-2.5">
389
  {error ? (
390
- <FileText className="text-destructive size-10" aria-hidden="true" />
391
  ) : (
392
  isFileWithPreview(file) ? <FilePreview file={file} /> : null
393
  )}
@@ -397,7 +397,7 @@ function FileCard({ file, progress, error, onRemove }: FileCardProps) {
397
  <p className="text-muted-foreground text-xs">{formatBytes(file.size)}</p>
398
  </div>
399
  {error ? (
400
- <div className="text-destructive text-sm">
401
  <div className="relative mb-2">
402
  <Progress value={100} error={true} />
403
  </div>
 
365
  <div
366
  className={cn(
367
  'h-full transition-all',
368
+ error ? 'bg-red-400' : 'bg-primary'
369
  )}
370
  style={{ width: `${value}%` }}
371
  />
 
387
  <div className="relative flex items-center gap-2.5">
388
  <div className="flex flex-1 gap-2.5">
389
  {error ? (
390
+ <FileText className="text-red-400 size-10" aria-hidden="true" />
391
  ) : (
392
  isFileWithPreview(file) ? <FilePreview file={file} /> : null
393
  )}
 
397
  <p className="text-muted-foreground text-xs">{formatBytes(file.size)}</p>
398
  </div>
399
  {error ? (
400
+ <div className="text-red-400 text-sm">
401
  <div className="relative mb-2">
402
  <Progress value={100} error={true} />
403
  </div>