mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-24 23:46:52 +08:00
### What problem does this PR solve? Fix (style): Optimized Datasets color scheme and layout #3221 - Updated background and text colors for multiple components - Adjusted some layout structures, such as the paging position of dataset tables - Unified status icons and color mapping - Optimized responsive layout to improve compatibility across different screen sizes ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
29 lines
806 B
TypeScript
29 lines
806 B
TypeScript
'use client';
|
|
|
|
import * as ProgressPrimitive from '@radix-ui/react-progress';
|
|
import * as React from 'react';
|
|
|
|
import { cn } from '@/lib/utils';
|
|
|
|
const Progress = React.forwardRef<
|
|
React.ElementRef<typeof ProgressPrimitive.Root>,
|
|
React.ComponentPropsWithoutRef<typeof ProgressPrimitive.Root>
|
|
>(({ className, value, ...props }, ref) => (
|
|
<ProgressPrimitive.Root
|
|
ref={ref}
|
|
className={cn(
|
|
'relative h-4 w-full overflow-hidden rounded-full bg-bg-accent',
|
|
className,
|
|
)}
|
|
{...props}
|
|
>
|
|
<ProgressPrimitive.Indicator
|
|
className="h-full w-full flex-1 bg-accent-primary transition-all"
|
|
style={{ transform: `translateX(-${100 - (value || 0)}%)` }}
|
|
/>
|
|
</ProgressPrimitive.Root>
|
|
));
|
|
Progress.displayName = ProgressPrimitive.Root.displayName;
|
|
|
|
export { Progress };
|