Преглед изворни кода

fix: no var text still show split line (#239)

Joel пре 1 година
родитељ
комит
408fb502a1
1 измењених фајлова са 3 додато и 2 уклоњено
  1. 3 2
      web/app/components/share/text-generation/config-scence/index.tsx

+ 3 - 2
web/app/components/share/text-generation/config-scence/index.tsx

@@ -60,8 +60,9 @@ const ConfigSence: FC<IConfigSenceProps> = ({
               </div>
             </div>
           ))}
-
-          <div className='mt-6 h-[1px] bg-gray-100'></div>
+          {promptConfig.prompt_variables.length > 0 && (
+            <div className='mt-6 h-[1px] bg-gray-100'></div>
+          )}
           <div className='w-full mt-5'>
             <label className='text-gray-900 text-sm font-medium'>{t('share.generation.queryTitle')}</label>
             <div className="mt-2 overflow-hidden rounded-lg bg-gray-50 ">