Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
style: fix progress color
Marc Seitzf822a9aa395f
diff --git a/components/Sidebar.tsx b/components/Sidebar.tsxindex d494397b..43af3c71 100644--- a/components/Sidebar.tsx+++ b/components/Sidebar.tsx@@ -335,22 +335,7 @@ function UsageProgress(data: {<div className="mt-2 flex flex-col space-y-2">{usage !== undefined && usageLimit !== undefined ? (<p className="text-sm text-foreground">- <span- className={cn(- usagePercentage > 100 && "text-destructive dark:text-red-600",- )}- >- {nFormatter(usage)}- </span>{" "}- / {nFormatter(usageLimit)} {unit}{" "}- <span- className={cn(- usagePercentage > 100 && "text-destructive dark:text-red-600",- )}- >- ({usagePercentage.toFixed(0)}- %)- </span>+ <span>{nFormatter(usage)}</span> / {nFormatter(usageLimit)} {unit}</p>) : (<div className="h-5 w-32 animate-pulse rounded-md bg-muted" />diff --git a/components/ui/progress.tsx b/components/ui/progress.tsxindex 03267e24..4b26873f 100644--- a/components/ui/progress.tsx+++ b/components/ui/progress.tsx@@ -27,10 +27,7 @@ const Progress = React.forwardRef<{...props}><ProgressPrimitive.Indicator- className={cn(- "h-full w-full flex-1 bg-primary transition-all",- value && value > 100 ? "bg-destructive dark:bg-red-600" : "",- )}+ className="h-full w-full flex-1 bg-primary transition-all"style={{ transform: `translateX(-${100 - (value || 0)}%)` }}/>{text && !error ? (