From 22917d62a8c14e54d196f240ceed1f4ab3289306 Mon Sep 17 00:00:00 2001 From: Brent O'Neill Date: Wed, 24 Sep 2025 13:52:16 -0600 Subject: [PATCH] fix radio button border and update labels to use LabelWrapper --- frontend/components/ui/radio-group.tsx | 26 +++--- frontend/src/app/settings/page.tsx | 108 +++++++++++++------------ 2 files changed, 71 insertions(+), 63 deletions(-) diff --git a/frontend/components/ui/radio-group.tsx b/frontend/components/ui/radio-group.tsx index 0968c2a8..de9da9af 100644 --- a/frontend/components/ui/radio-group.tsx +++ b/frontend/components/ui/radio-group.tsx @@ -1,10 +1,10 @@ -"use client" +"use client"; -import * as React from "react" -import * as RadioGroupPrimitive from "@radix-ui/react-radio-group" -import { Circle } from "lucide-react" +import * as React from "react"; +import * as RadioGroupPrimitive from "@radix-ui/react-radio-group"; +import { Circle } from "lucide-react"; -import { cn } from "@/lib/utils" +import { cn } from "@/lib/utils"; const RadioGroup = React.forwardRef< React.ElementRef, @@ -16,9 +16,9 @@ const RadioGroup = React.forwardRef< {...props} ref={ref} /> - ) -}) -RadioGroup.displayName = RadioGroupPrimitive.Root.displayName + ); +}); +RadioGroup.displayName = RadioGroupPrimitive.Root.displayName; const RadioGroupItem = React.forwardRef< React.ElementRef, @@ -28,7 +28,7 @@ const RadioGroupItem = React.forwardRef< - ) -}) -RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName + ); +}); +RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName; -export { RadioGroup, RadioGroupItem } \ No newline at end of file +export { RadioGroup, RadioGroupItem }; diff --git a/frontend/src/app/settings/page.tsx b/frontend/src/app/settings/page.tsx index 4f793177..bf3327e3 100644 --- a/frontend/src/app/settings/page.tsx +++ b/frontend/src/app/settings/page.tsx @@ -37,6 +37,7 @@ import { useTask } from "@/contexts/task-context"; import { useDebounce } from "@/lib/debounce"; import { getFallbackModels, type ModelProvider } from "./helpers/model-helpers"; import { ModelSelectItems } from "./helpers/model-select-item"; +import { LabelWrapper } from "@/components/label-wrapper"; const MAX_SYSTEM_PROMPT_CHARS = 2000; @@ -797,29 +798,35 @@ function KnowledgeSourcesPage() {
- - + +