diff --git a/spa/src/components/stats/activity-correlations.tsx b/spa/src/components/stats/activity-correlations.tsx index 7ad6678..ce8099d 100644 --- a/spa/src/components/stats/activity-correlations.tsx +++ b/spa/src/components/stats/activity-correlations.tsx @@ -11,9 +11,7 @@ export function ActivityCorrelations() { const { data: correlations, isLoading } = useAllCorrelations(activeIds) - const activityMap = new Map( - (activities ?? []).map((a) => [a.id, a.name]) - ) + const activityMap = new Map((activities ?? []).map((a) => [a.id, a.name])) const sorted = [...(correlations ?? [])].sort( (a, b) => Math.abs(b.correlation!) - Math.abs(a.correlation!) @@ -54,7 +52,7 @@ function CorrelationBar({ name, value }: { name: string; value: number }) { }`} style={{ width: `${pct / 2}%` }} /> -
+
{children} - - + + ) diff --git a/spa/src/components/ui/breadcrumb.tsx b/spa/src/components/ui/breadcrumb.tsx index 3d85c18..30dbfc3 100644 --- a/spa/src/components/ui/breadcrumb.tsx +++ b/spa/src/components/ui/breadcrumb.tsx @@ -85,9 +85,7 @@ function BreadcrumbSeparator({ className={cn("[&>svg]:size-3.5", className)} {...props} > - {children ?? ( - - )} + {children ?? } ) } @@ -107,8 +105,7 @@ function BreadcrumbEllipsis({ )} {...props} > - + More ) diff --git a/spa/src/components/ui/calendar.tsx b/spa/src/components/ui/calendar.tsx index 0f8950a..c502190 100644 --- a/spa/src/components/ui/calendar.tsx +++ b/spa/src/components/ui/calendar.tsx @@ -10,7 +10,11 @@ import { import { cn } from "@/lib/utils" import { Button, buttonVariants } from "@/components/ui/button" -import { ChevronLeftIcon, ChevronRightIcon, ChevronDownIcon } from "lucide-react" +import { + ChevronLeftIcon, + ChevronRightIcon, + ChevronDownIcon, +} from "lucide-react" function Calendar({ className, @@ -153,7 +157,10 @@ function Calendar({ if (orientation === "right") { return ( - + ) } diff --git a/spa/src/components/ui/checkbox.tsx b/spa/src/components/ui/checkbox.tsx index 4d2179b..7e6f35b 100644 --- a/spa/src/components/ui/checkbox.tsx +++ b/spa/src/components/ui/checkbox.tsx @@ -19,8 +19,7 @@ function Checkbox({ className, ...props }: CheckboxPrimitive.Root.Props) { data-slot="checkbox-indicator" className="grid place-content-center text-current transition-none [&>svg]:size-3.5" > - + ) diff --git a/spa/src/components/ui/combobox.tsx b/spa/src/components/ui/combobox.tsx index be8eea2..5374cdf 100644 --- a/spa/src/components/ui/combobox.tsx +++ b/spa/src/components/ui/combobox.tsx @@ -108,7 +108,10 @@ function ComboboxContent({ diff --git a/spa/src/components/ui/command.tsx b/spa/src/components/ui/command.tsx index 37fb2d9..6cc0532 100644 --- a/spa/src/components/ui/command.tsx +++ b/spa/src/components/ui/command.tsx @@ -11,10 +11,7 @@ import { DialogHeader, DialogTitle, } from "@/components/ui/dialog" -import { - InputGroup, - InputGroupAddon, -} from "@/components/ui/input-group" +import { InputGroup, InputGroupAddon } from "@/components/ui/input-group" import { SearchIcon, CheckIcon } from "lucide-react" function Command({ diff --git a/spa/src/components/ui/context-menu.tsx b/spa/src/components/ui/context-menu.tsx index 9c0eb98..0083a86 100644 --- a/spa/src/components/ui/context-menu.tsx +++ b/spa/src/components/ui/context-menu.tsx @@ -52,7 +52,10 @@ function ContextMenuContent({ > @@ -174,8 +177,7 @@ function ContextMenuCheckboxItem({ > - + {children} @@ -214,8 +216,7 @@ function ContextMenuRadioItem({ > - + {children} diff --git a/spa/src/components/ui/input-otp.tsx b/spa/src/components/ui/input-otp.tsx index 27c9ed6..44727a0 100644 --- a/spa/src/components/ui/input-otp.tsx +++ b/spa/src/components/ui/input-otp.tsx @@ -76,8 +76,7 @@ function InputOTPSeparator({ ...props }: React.ComponentProps<"div">) { role="separator" {...props} > - +
) } diff --git a/spa/src/components/ui/menubar.tsx b/spa/src/components/ui/menubar.tsx index 9738fb1..a332bb9 100644 --- a/spa/src/components/ui/menubar.tsx +++ b/spa/src/components/ui/menubar.tsx @@ -80,7 +80,10 @@ function MenubarContent({ align={align} alignOffset={alignOffset} sideOffset={sideOffset} - className={cn("min-w-36 rounded-lg bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95", className )} + className={cn( + "min-w-36 rounded-lg bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95", + className + )} {...props} /> ) @@ -128,8 +131,7 @@ function MenubarCheckboxItem({ > - + {children} @@ -163,8 +165,7 @@ function MenubarRadioItem({ > - + {children} @@ -254,7 +255,10 @@ function MenubarSubContent({ return ( ) diff --git a/spa/src/components/ui/message-scroller.tsx b/spa/src/components/ui/message-scroller.tsx index 38c8dba..5eecc1a 100644 --- a/spa/src/components/ui/message-scroller.tsx +++ b/spa/src/components/ui/message-scroller.tsx @@ -105,8 +105,7 @@ function MessageScrollerButton({ > {children ?? ( <> - + {direction === "end" ? "Scroll to end" : "Scroll to start"} diff --git a/spa/src/components/ui/native-select.tsx b/spa/src/components/ui/native-select.tsx index 21c4a30..5073291 100644 --- a/spa/src/components/ui/native-select.tsx +++ b/spa/src/components/ui/native-select.tsx @@ -27,7 +27,11 @@ function NativeSelect({ className="h-8 w-full min-w-0 appearance-none rounded-lg border border-input bg-transparent py-1 pr-8 pl-2.5 text-sm transition-colors outline-none select-none selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] data-[size=sm]:py-0.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40" {...props} /> -