From a430284aa21e3ae1f0d5654e55b2ad2852519cc2 Mon Sep 17 00:00:00 2001 From: wwf <yearningwang@iqtogether.com> Date: 星期三, 04 六月 2025 15:17:49 +0800 Subject: [PATCH] 初始化 --- app/components/datasets/create/step-two/inputs.tsx | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/components/datasets/create/step-two/inputs.tsx b/app/components/datasets/create/step-two/inputs.tsx index d6dc6e9..acd4e3a 100644 --- a/app/components/datasets/create/step-two/inputs.tsx +++ b/app/components/datasets/create/step-two/inputs.tsx @@ -7,11 +7,11 @@ import { InputNumber } from '@/app/components/base/input-number' const TextLabel: FC<PropsWithChildren> = (props) => { - return <label className='text-xs font-semibold leading-none text-text-secondary'>{props.children}</label> + return <label className='text-text-secondary text-xs font-semibold leading-none'>{props.children}</label> } const FormField: FC<PropsWithChildren<{ label: ReactNode }>> = (props) => { - return <div className='flex-1 space-y-2'> + return <div className='space-y-2 flex-1'> <TextLabel>{props.label}</TextLabel> {props.children} </div> @@ -19,7 +19,7 @@ export const DelimiterInput: FC<InputProps & { tooltip?: string }> = (props) => { const { t } = useTranslation() - return <FormField label={<div className='mb-1 flex items-center'> + return <FormField label={<div className='flex items-center mb-1'> <span className='system-sm-semibold mr-0.5'>{t('datasetCreation.stepTwo.separator')}</span> <Tooltip popupContent={ @@ -39,7 +39,7 @@ } export const MaxLengthInput: FC<InputNumberProps> = (props) => { - const maxValue = Number.parseInt(globalThis.document?.body?.getAttribute('data-public-indexing-max-segmentation-tokens-length') || '4000', 10) + const maxValue = parseInt(globalThis.document?.body?.getAttribute('data-public-indexing-max-segmentation-tokens-length') || '4000', 10) const { t } = useTranslation() return <FormField label={<div className='system-sm-semibold mb-1'> @@ -47,7 +47,7 @@ </div>}> <InputNumber type="number" - size='large' + className='h-9' placeholder={`鈮� ${maxValue}`} max={maxValue} min={1} @@ -58,7 +58,7 @@ export const OverlapInput: FC<InputNumberProps> = (props) => { const { t } = useTranslation() - return <FormField label={<div className='mb-1 flex items-center'> + return <FormField label={<div className='flex items-center mb-1'> <span className='system-sm-semibold'>{t('datasetCreation.stepTwo.overlap')}</span> <Tooltip popupContent={ @@ -70,7 +70,7 @@ </div>}> <InputNumber type="number" - size='large' + className='h-9' placeholder={t('datasetCreation.stepTwo.overlap') || ''} min={1} {...props} -- Gitblit v1.8.0