Chore: frontend infrastructure upgrade (#16420)
Co-authored-by: NFish <douxc512@gmail.com> Co-authored-by: zxhlyh <jasonapring2015@outlook.com> Co-authored-by: twwu <twwu@dify.ai> Co-authored-by: jZonG <jzongcode@gmail.com>
This commit is contained in:
@@ -103,7 +103,7 @@ const ConfigPromptItem: FC<Props> = ({
|
||||
title={
|
||||
<div className='relative left-1 flex items-center'>
|
||||
{payload.role === PromptRole.system
|
||||
? (<div className='relative left-[-4px] text-xs font-semibold text-gray-700 uppercase'>
|
||||
? (<div className='relative left-[-4px] text-xs font-semibold uppercase text-gray-700'>
|
||||
SYSTEM
|
||||
</div>)
|
||||
: (
|
||||
|
@@ -179,8 +179,8 @@ const ConfigPrompt: FC<Props> = ({
|
||||
return true
|
||||
})()
|
||||
return (
|
||||
<div key={item.id || index} className='relative group'>
|
||||
{canDrag && <DragHandle className='group-hover:block hidden absolute left-[-14px] top-2 w-3.5 h-3.5 text-gray-400' />}
|
||||
<div key={item.id || index} className='group relative'>
|
||||
{canDrag && <DragHandle className='absolute left-[-14px] top-2 hidden h-3.5 w-3.5 text-gray-400 group-hover:block' />}
|
||||
<ConfigPromptItem
|
||||
className={cn(canDrag && 'handle')}
|
||||
headerClassName={cn(canDrag && 'cursor-grab')}
|
||||
|
@@ -32,7 +32,7 @@ const PromptGeneratorBtn: FC<Props> = ({
|
||||
<ActionButton
|
||||
className='hover:bg-[#155EFF]/8'
|
||||
onClick={showAutomaticTrue}>
|
||||
<Generator className='w-4 h-4 text-primary-600' />
|
||||
<Generator className='h-4 w-4 text-primary-600' />
|
||||
</ActionButton>
|
||||
{showAutomatic && (
|
||||
<GetAutomaticResModal
|
||||
|
@@ -25,7 +25,7 @@ const ResolutionPicker: FC<Props> = ({
|
||||
}, [onChange])
|
||||
return (
|
||||
<div className='flex items-center justify-between'>
|
||||
<div className='mr-2 text-xs font-medium text-gray-500 uppercase'>{t(`${i18nPrefix}.resolution.name`)}</div>
|
||||
<div className='mr-2 text-xs font-medium uppercase text-gray-500'>{t(`${i18nPrefix}.resolution.name`)}</div>
|
||||
<div className='flex items-center space-x-1'>
|
||||
<OptionCard
|
||||
title={t(`${i18nPrefix}.resolution.high`)}
|
||||
|
Reference in New Issue
Block a user