From 9a285ddb0528bf5a03996a8d7ac1cee787e93764 Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Wed, 17 Jun 2026 19:27:27 +0530 Subject: [PATCH] fix: wrap dograh model config in card --- .../AIModelConfigurationV2Editor.tsx | 177 +++++++++--------- 1 file changed, 90 insertions(+), 87 deletions(-) diff --git a/ui/src/components/AIModelConfigurationV2Editor.tsx b/ui/src/components/AIModelConfigurationV2Editor.tsx index 509a3e13..86a2b9a0 100644 --- a/ui/src/components/AIModelConfigurationV2Editor.tsx +++ b/ui/src/components/AIModelConfigurationV2Editor.tsx @@ -11,6 +11,7 @@ import { type ServiceSegment, } from "@/components/ServiceConfigurationForm"; import { Button } from "@/components/ui/button"; +import { Card, CardContent } from "@/components/ui/card"; import { Checkbox } from "@/components/ui/checkbox"; import { Input } from "@/components/ui/input"; import { Label } from "@/components/ui/label"; @@ -366,105 +367,107 @@ export function AIModelConfigurationV2Editor({ -
-
-
- - {isCustomVoice ? ( - setDograh({ ...dograh, voice: event.target.value })} - /> - ) : ( - setDograh({ ...dograh, voice: event.target.value })} + /> + ) : ( + + )} + {allowCustomVoice && ( +
+ { + const custom = checked as boolean; + setIsCustomVoice(custom); + if (!custom) { + setDograh({ ...dograh, voice: defaults.dograh.defaults.voice }); + } + }} + /> + +
+ )} +
+ +
+ + - )} - {allowCustomVoice && ( -
- { - const custom = checked as boolean; - setIsCustomVoice(custom); - if (!custom) { - setDograh({ ...dograh, voice: defaults.dograh.defaults.voice }); - } - }} +
+ +
+ + +
+ +
+ +
+ + setDograh({ ...dograh, api_key: event.target.value })} + placeholder="Enter API key" /> -
- )} -
- -
- - -
- -
- - -
- -
- -
- - setDograh({ ...dograh, api_key: event.target.value })} - placeholder="Enter API key" - />
-
- -
+ + +