chore: align design token

pull/12097/head
AkaraChen 2 years ago
parent e26a963163
commit e2c6ea3a3a

@ -18,7 +18,7 @@
} }
.form .label { .form .label {
@apply pt-6 pb-2 flex items-center; @apply pb-2 flex items-center;
font-weight: 500; font-weight: 500;
font-size: 16px; font-size: 16px;
line-height: 24px; line-height: 24px;

@ -59,6 +59,7 @@ import RadioCard from '@/app/components/base/radio-card'
import { MessageChatSquare } from '@/app/components/base/icons/src/public/common' import { MessageChatSquare } from '@/app/components/base/icons/src/public/common'
import { IS_CE_EDITION } from '@/config' import { IS_CE_EDITION } from '@/config'
import Switch from '@/app/components/base/switch' import Switch from '@/app/components/base/switch'
import Divider from '@/app/components/base/divider'
const TextLabel: FC<PropsWithChildren> = (props) => { const TextLabel: FC<PropsWithChildren> = (props) => {
return <label className='text-text-secondary text-xs font-semibold leading-none'>{props.children}</label> return <label className='text-text-secondary text-xs font-semibold leading-none'>{props.children}</label>
@ -827,6 +828,7 @@ const StepTwo = ({
</OptionCard> </OptionCard>
</div> </div>
</div> </div>
<Divider className='my-5' />
<div className={s.label}>{t('datasetCreation.stepTwo.indexMode')}</div> <div className={s.label}>{t('datasetCreation.stepTwo.indexMode')}</div>
<div className='max-w-[640px]'> <div className='max-w-[640px]'>
<div className='flex items-center gap-3 flex-wrap sm:flex-nowrap'> <div className='flex items-center gap-3 flex-wrap sm:flex-nowrap'>
@ -894,7 +896,7 @@ const StepTwo = ({
</div> </div>
)} )}
{IS_CE_EDITION && indexType === IndexingType.QUALIFIED && ( {IS_CE_EDITION && indexType === IndexingType.QUALIFIED && (
<div className='mt-3 rounded-xl bg-gray-50 border border-gray-100'> <div className='mt-2 rounded-xl bg-gray-50 border border-gray-100'>
<div className='flex justify-between items-center px-5 py-4'> <div className='flex justify-between items-center px-5 py-4'>
<div className='flex justify-center items-center w-8 h-8 rounded-lg bg-indigo-50'> <div className='flex justify-center items-center w-8 h-8 rounded-lg bg-indigo-50'>
<MessageChatSquare className='w-4 h-4' /> <MessageChatSquare className='w-4 h-4' />
@ -922,7 +924,7 @@ const StepTwo = ({
)} )}
{/* Embedding model */} {/* Embedding model */}
{indexType === IndexingType.QUALIFIED && ( {indexType === IndexingType.QUALIFIED && (
<div className='mb-2'> <div className='mt-6 my-2'>
<div className={cn(s.label, datasetId && 'flex justify-between items-center')}>{t('datasetSettings.form.embeddingModel')}</div> <div className={cn(s.label, datasetId && 'flex justify-between items-center')}>{t('datasetSettings.form.embeddingModel')}</div>
<ModelSelector <ModelSelector
readonly={!!datasetId} readonly={!!datasetId}
@ -940,6 +942,7 @@ const StepTwo = ({
)} )}
</div> </div>
)} )}
<Divider className='my-5' />
{/* Retrieval Method Config */} {/* Retrieval Method Config */}
<div> <div>
{!datasetId {!datasetId

Loading…
Cancel
Save