mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-10-16 14:50:15 +08:00
dbeaver/pro#6599 fix: first group width on AI profile setting
This commit is contained in:
+20
-18
@@ -86,26 +86,28 @@ export const AIProfileOptions: TabContainerPanelComponent<IAIProfileFormProps> =
|
||||
return (
|
||||
<ColoredContainer wrap overflow parent gap>
|
||||
<Container medium gap>
|
||||
<Group form gap>
|
||||
<InputField ref={nameRef} name="name" state={part.state} disabled={formState.isDisabled} small required>
|
||||
{translate('plugin_ai_administration_profile_form_field_name')}
|
||||
</InputField>
|
||||
<Select
|
||||
items={enginesLoader.data}
|
||||
valueSelector={value => value.name}
|
||||
keySelector={value => value.id}
|
||||
value={part.state.engineId}
|
||||
disabled={formState.isDisabled || isEditMode}
|
||||
iconSelector={value => value.icon}
|
||||
small
|
||||
required
|
||||
onSelect={value => value && part.changeEngine(value)}
|
||||
>
|
||||
{translate('plugin_ai_administration_profile_form_field_engine')}
|
||||
</Select>
|
||||
<Group gap>
|
||||
<Container vertical gap>
|
||||
<InputField ref={nameRef} name="name" state={part.state} disabled={formState.isDisabled} small required>
|
||||
{translate('plugin_ai_administration_profile_form_field_name')}
|
||||
</InputField>
|
||||
<Select
|
||||
items={enginesLoader.data}
|
||||
valueSelector={value => value.name}
|
||||
keySelector={value => value.id}
|
||||
value={part.state.engineId}
|
||||
disabled={formState.isDisabled || isEditMode}
|
||||
iconSelector={value => value.icon}
|
||||
small
|
||||
required
|
||||
onSelect={value => value && part.changeEngine(value)}
|
||||
>
|
||||
{translate('plugin_ai_administration_profile_form_field_engine')}
|
||||
</Select>
|
||||
</Container>
|
||||
</Group>
|
||||
{!!part.state.engineId && (
|
||||
<Group gap keepSize medium>
|
||||
<Group gap medium>
|
||||
<GroupTitle>{translate('ai_administration_language_model_settings')}</GroupTitle>
|
||||
<Container vertical gap>
|
||||
{hasModels && (
|
||||
|
||||
Reference in New Issue
Block a user