From b3fd12ed702800f43bd2363439bf1b015f7ed125 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Thu, 14 May 2026 10:43:32 -0600 Subject: [PATCH] Use select --- web/src/components/chat/ChatSettings.tsx | 48 ++++++++++++------------ 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/web/src/components/chat/ChatSettings.tsx b/web/src/components/chat/ChatSettings.tsx index 78fe70203a..5b3dd64290 100644 --- a/web/src/components/chat/ChatSettings.tsx +++ b/web/src/components/chat/ChatSettings.tsx @@ -4,7 +4,13 @@ import { isDesktop } from "react-device-detect"; import { cn } from "@/lib/utils"; import PlatformAwareDialog from "../overlay/dialog/PlatformAwareDialog"; import { FaCog } from "react-icons/fa"; -import { RadioGroup, RadioGroupItem } from "@/components/ui/radio-group"; +import { + Select, + SelectContent, + SelectGroup, + SelectItem, + SelectTrigger, +} from "@/components/ui/select"; import { Switch } from "@/components/ui/switch"; import { Label } from "@/components/ui/label"; import { DropdownMenuSeparator } from "@/components/ui/dropdown-menu"; @@ -47,32 +53,26 @@ export default function ChatSettings({ {t("settings.show_stats.desc")} - setShowStats(v as ShowStatsMode)} > -
- - -
-
- - -
-
+ + {showStats === "always" + ? t("settings.show_stats.always") + : t("settings.show_stats.while_generating")} + + + + + {t("settings.show_stats.while_generating")} + + + {t("settings.show_stats.always")} + + + +