Parcourir la source

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

Yi Xiao il y a 8 mois
Parent
commit
25386af41a
1 fichiers modifiés avec 8 ajouts et 6 suppressions
  1. 8 6
      web/app/components/datasets/settings/form/index.tsx

+ 8 - 6
web/app/components/datasets/settings/form/index.tsx

@@ -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}>