fix: knowledge setting "knowledge name" input width (#7584)

This commit is contained in:
Yi Xiao 2024-08-23 17:20:19 +08:00 committed by GitHub
parent f29685f8a1
commit 25386af41a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -163,12 +163,14 @@ const Form = () => {
<div className={labelClass}>
<div>{t('datasetSettings.form.name')}</div>
</div>
<input
disabled={!currentDataset?.embedding_available}
className={cn(inputClass, !currentDataset?.embedding_available && 'opacity-60', 'h-9')}
value={name}
onChange={e => setName(e.target.value)}
/>
<div className='w-full max-w-[480px]'>
<input
disabled={!currentDataset?.embedding_available}
className={cn(inputClass, !currentDataset?.embedding_available && 'opacity-60', 'h-9')}
value={name}
onChange={e => setName(e.target.value)}
/>
</div>
</div>
<div className={rowClass}>
<div className={labelClass}>