Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

chore: cleanup ui color

Faisal Amir09e06018ab90
diff --git a/web-app/src/components/ui/switch.tsx b/web-app/src/components/ui/switch.tsx
index 97abd3da1..41c7e9e91 100644
--- a/web-app/src/components/ui/switch.tsx
+++ b/web-app/src/components/ui/switch.tsx
@@ -12,7 +12,7 @@ function Switch({ loading, className, ...props }: SwitchProps) {
<SwitchPrimitive.Root
data-slot="switch"
className={cn(
- 'relative peer cursor-pointer data-[state=checked]:bg-primary data-[state=unchecked]:bg-background focus-visible:border-none inline-flex h-[18px] w-8.5 shrink-0 items-center rounded-full border shadow-xs outline-none focus-visible:ring-0 disabled:cursor-not-allowed disabled:opacity-50 transition-all',
+ 'relative peer cursor-pointer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-none inline-flex h-[18px] w-8.5 shrink-0 items-center rounded-full border shadow-xs outline-none focus-visible:ring-0 disabled:cursor-not-allowed disabled:opacity-50 transition-all',
loading && 'w-4.5 pointer-events-none',
className
)}
@@ -26,7 +26,7 @@ function Switch({ loading, className, ...props }: SwitchProps) {
<SwitchPrimitive.Thumb
data-slot="switch-thumb"
className={cn(
- 'bg-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%)] data-[state=unchecked]:translate-x-0'
+ 'bg-background pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%)] data-[state=unchecked]:translate-x-0'
)}
/>
</SwitchPrimitive.Root>
diff --git a/web-app/src/containers/DownloadButton.tsx b/web-app/src/containers/DownloadButton.tsx
index 9d5567737..14e1d8f38 100644
--- a/web-app/src/containers/DownloadButton.tsx
+++ b/web-app/src/containers/DownloadButton.tsx
@@ -128,7 +128,7 @@ export function DownloadButtonPlaceholder({
>
{isDownloading && !isDownloaded && (
<div className={cn('flex items-center gap-2 w-20')}>
- <Progress value={downloadProgress * 100} />
+ <Progress className='border' value={downloadProgress * 100} />
<span className="text-xs text-center text-muted-foreground">
{Math.round(downloadProgress * 100)}%
</span>
diff --git a/web-app/src/containers/ModelDownloadAction.tsx b/web-app/src/containers/ModelDownloadAction.tsx
index a6fae7c9c..bcd34c43b 100644
--- a/web-app/src/containers/ModelDownloadAction.tsx
+++ b/web-app/src/containers/ModelDownloadAction.tsx
@@ -93,7 +93,7 @@ export const ModelDownloadAction = ({
return (
<>
<div className="flex items-center gap-2 w-20">
- <Progress value={downloadProgress * 100} />
+ <Progress className="border" value={downloadProgress * 100} />
<span className="text-xs text-center text-muted-foreground">
{Math.round(downloadProgress * 100)}%
</span>