Skip to content

Commit

Permalink
chore: enchance annotation ui (#1781)
Browse files Browse the repository at this point in the history
  • Loading branch information
iamjoel authored Dec 19, 2023
1 parent 9b34f5a commit 8e2e477
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const ConfigParamModal: FC<Props> = ({
{t(`appAnnotation.initSetup.${isInit ? 'title' : 'configTitle'}`)}
</div>

<div className='space-y-2'>
<div className='mt-6 space-y-3'>
<Item
title={t('appDebug.feature.annotation.scoreThreshold.title')}
tooltip={t('appDebug.feature.annotation.scoreThreshold.description')}
Expand Down Expand Up @@ -120,12 +120,12 @@ const ConfigParamModal: FC<Props> = ({
</Item>
</div>

<div className='mt-4 flex gap-2 justify-end'>
<Button onClick={onHide}>{t('common.operation.cancel')}</Button>
<div className='mt-6 flex gap-2 justify-end'>
<Button className='!text-sm' onClick={onHide}>{t('common.operation.cancel')}</Button>
<Button
type='primary'
onClick={handleSave}
className='flex items-center border-[0.5px]'
className='flex items-center border-[0.5px] !text-sm'
loading={isLoading}
>
<div></div>
Expand Down
4 changes: 2 additions & 2 deletions web/app/components/app/overview/settings/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ const SettingsModal: FC<ISettingsModalProps> = ({
/>
</>}
<div className='mt-10 flex justify-end'>
<Button className='mr-2 flex-shrink-0' onClick={onHide}>{t('common.operation.cancel')}</Button>
<Button type='primary' className='flex-shrink-0' onClick={onClickSave} loading={saveLoading}>{t('common.operation.save')}</Button>
<Button className='mr-2 flex-shrink-0 !text-sm' onClick={onHide}>{t('common.operation.cancel')}</Button>
<Button type='primary' className='flex-shrink-0 !text-sm' onClick={onClickSave} loading={saveLoading}>{t('common.operation.save')}</Button>
</div>
{showEmojiPicker && <EmojiPicker
onSelect={(icon, icon_background) => {
Expand Down
2 changes: 1 addition & 1 deletion web/i18n/lang/common.zh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const translation = {
ok: '好的',
log: '日志',
learnMore: '了解更多',
params: '参数',
params: '参数设置',
},
placeholder: {
input: '请输入',
Expand Down

0 comments on commit 8e2e477

Please sign in to comment.