yangdx commited on
Commit
957e35a
·
1 Parent(s): 79ea031

Update UI component styling in dark mode

Browse files
lightrag_webui/src/components/ui/Checkbox.tsx CHANGED
@@ -11,7 +11,7 @@ const Checkbox = React.forwardRef<
11
  <CheckboxPrimitive.Root
12
  ref={ref}
13
  className={cn(
14
- 'peer border-primary ring-offset-background focus-visible:ring-ring data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground h-4 w-4 shrink-0 rounded-sm border focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50',
15
  className
16
  )}
17
  {...props}
 
11
  <CheckboxPrimitive.Root
12
  ref={ref}
13
  className={cn(
14
+ 'peer border-primary ring-offset-background focus-visible:ring-ring data-[state=checked]:bg-muted data-[state=checked]:text-muted-foreground h-4 w-4 shrink-0 rounded-sm border focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50',
15
  className
16
  )}
17
  {...props}
lightrag_webui/src/components/ui/Input.tsx CHANGED
@@ -7,7 +7,7 @@ const Input = React.forwardRef<HTMLInputElement, React.ComponentProps<'input'>>(
7
  <input
8
  type={type}
9
  className={cn(
10
- 'border-input file:text-foreground placeholder:text-muted-foreground focus-visible:ring-ring flex h-9 rounded-md border bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:ring-1 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm [&::-webkit-inner-spin-button]:opacity-100 [&::-webkit-outer-spin-button]:opacity-100',
11
  className
12
  )}
13
  ref={ref}
 
7
  <input
8
  type={type}
9
  className={cn(
10
+ 'border-input file:text-foreground placeholder:text-muted-foreground focus-visible:ring-ring flex h-9 rounded-md border bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:ring-1 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm [&::-webkit-inner-spin-button]:opacity-50 [&::-webkit-outer-spin-button]:opacity-50',
11
  className
12
  )}
13
  ref={ref}