feat: prompt editor support auto height by content height and fix some bugs (#3712)

This commit is contained in:
Joel 2024-04-23 17:46:59 +08:00 • committed by GitHub
commit f92130338b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 52 additions and 39 deletions

View file

@ -218,13 +218,14 @@ const ModelParameterModal: FC<ModelParameterModalProps> = ({
!isInWorkflow && 'px-10 pt-6 pb-8',
isInWorkflow && 'p-4')}>
<div className='flex items-center justify-between h-8'>
<div className={cn('font-semibold text-gray-900', isInWorkflow && 'text-[13px]')}>
<div className={cn('font-semibold text-gray-900 shrink-0', isInWorkflow && 'text-[13px]')}>
{t('common.modelProvider.model').toLocaleUpperCase()}
</div>
<ModelSelector
defaultModel={(provider || modelId) ? { provider, model: modelId } : undefined}
modelList={activeTextGenerationModelList}
onSelect={handleChangeModel}
triggerClassName='max-w-[295px]'
/>
</div>
{