fixed version selection default value and added proper avatar names to the dropdown preview
This commit is contained in:
@ -75,6 +75,7 @@ export const SystemVoiceCustomization: FC<SystemVoiceSelectionProps> = ({
|
||||
const data = await getCurrentSystemVoice();
|
||||
if (data.length > 0) {
|
||||
setSytemVoiceId(data[0].voiceId!);
|
||||
form.setValue("PlayerSystemVoice", data[0].voiceId as number);
|
||||
}
|
||||
} catch (error) {
|
||||
console.error("Error fetching system voices:", error);
|
||||
@ -152,7 +153,7 @@ export const SystemVoiceCustomization: FC<SystemVoiceSelectionProps> = ({
|
||||
variant="outline"
|
||||
role="combobox"
|
||||
className={cn(
|
||||
"w-[300px] justify-between",
|
||||
"w-[400px] justify-between",
|
||||
!field.value && "text-muted-foreground",
|
||||
)}
|
||||
>
|
||||
@ -165,7 +166,7 @@ export const SystemVoiceCustomization: FC<SystemVoiceSelectionProps> = ({
|
||||
</Button>
|
||||
</FormControl>
|
||||
</PopoverTrigger>
|
||||
<PopoverContent className="w-[300px] p-0">
|
||||
<PopoverContent className="w-[400px] p-0">
|
||||
<Command>
|
||||
<CommandList>
|
||||
<CommandEmpty>No system voice found.</CommandEmpty>
|
||||
|
Reference in New Issue
Block a user