mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-14 18:25:55 +08:00
chore: enchance annotation ui (#1781)
This commit is contained in:
parent
9b34f5a9ff
commit
8e2e477a7f
@ -83,7 +83,7 @@ const ConfigParamModal: FC<Props> = ({
|
|||||||
{t(`appAnnotation.initSetup.${isInit ? 'title' : 'configTitle'}`)}
|
{t(`appAnnotation.initSetup.${isInit ? 'title' : 'configTitle'}`)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className='space-y-2'>
|
<div className='mt-6 space-y-3'>
|
||||||
<Item
|
<Item
|
||||||
title={t('appDebug.feature.annotation.scoreThreshold.title')}
|
title={t('appDebug.feature.annotation.scoreThreshold.title')}
|
||||||
tooltip={t('appDebug.feature.annotation.scoreThreshold.description')}
|
tooltip={t('appDebug.feature.annotation.scoreThreshold.description')}
|
||||||
@ -120,12 +120,12 @@ const ConfigParamModal: FC<Props> = ({
|
|||||||
</Item>
|
</Item>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className='mt-4 flex gap-2 justify-end'>
|
<div className='mt-6 flex gap-2 justify-end'>
|
||||||
<Button onClick={onHide}>{t('common.operation.cancel')}</Button>
|
<Button className='!text-sm' onClick={onHide}>{t('common.operation.cancel')}</Button>
|
||||||
<Button
|
<Button
|
||||||
type='primary'
|
type='primary'
|
||||||
onClick={handleSave}
|
onClick={handleSave}
|
||||||
className='flex items-center border-[0.5px]'
|
className='flex items-center border-[0.5px] !text-sm'
|
||||||
loading={isLoading}
|
loading={isLoading}
|
||||||
>
|
>
|
||||||
<div></div>
|
<div></div>
|
||||||
|
@ -160,8 +160,8 @@ const SettingsModal: FC<ISettingsModalProps> = ({
|
|||||||
/>
|
/>
|
||||||
</>}
|
</>}
|
||||||
<div className='mt-10 flex justify-end'>
|
<div className='mt-10 flex justify-end'>
|
||||||
<Button className='mr-2 flex-shrink-0' onClick={onHide}>{t('common.operation.cancel')}</Button>
|
<Button className='mr-2 flex-shrink-0 !text-sm' onClick={onHide}>{t('common.operation.cancel')}</Button>
|
||||||
<Button type='primary' className='flex-shrink-0' onClick={onClickSave} loading={saveLoading}>{t('common.operation.save')}</Button>
|
<Button type='primary' className='flex-shrink-0 !text-sm' onClick={onClickSave} loading={saveLoading}>{t('common.operation.save')}</Button>
|
||||||
</div>
|
</div>
|
||||||
{showEmojiPicker && <EmojiPicker
|
{showEmojiPicker && <EmojiPicker
|
||||||
onSelect={(icon, icon_background) => {
|
onSelect={(icon, icon_background) => {
|
||||||
|
@ -32,7 +32,7 @@ const translation = {
|
|||||||
ok: '好的',
|
ok: '好的',
|
||||||
log: '日志',
|
log: '日志',
|
||||||
learnMore: '了解更多',
|
learnMore: '了解更多',
|
||||||
params: '参数',
|
params: '参数设置',
|
||||||
},
|
},
|
||||||
placeholder: {
|
placeholder: {
|
||||||
input: '请输入',
|
input: '请输入',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user