mirror of
https://github.com/labring/FastGPT.git
synced 2025-12-29 08:12:53 +00:00
skill edit ui
This commit is contained in:
parent
0a1a81d7cd
commit
fdf933de82
|
|
@ -27,7 +27,7 @@ const ChatTest = ({ skill, setAppForm }: Props) => {
|
||||||
return (
|
return (
|
||||||
<MyBox display={'flex'} position={'relative'} flexDirection={'column'} h={'full'} py={4}>
|
<MyBox display={'flex'} position={'relative'} flexDirection={'column'} h={'full'} py={4}>
|
||||||
<Flex px={[2, 5]} pb={2}>
|
<Flex px={[2, 5]} pb={2}>
|
||||||
<Box color={'myGray.900'} fontWeight={'bold'} flex={1}>
|
<Box color={'myGray.900'} fontWeight={'bold'} fontSize={'lg'} flex={1}>
|
||||||
{t('app:skill_editor')}
|
{t('app:skill_editor')}
|
||||||
</Box>
|
</Box>
|
||||||
<MyTooltip label={t('common:core.chat.Restart')}>
|
<MyTooltip label={t('common:core.chat.Restart')}>
|
||||||
|
|
|
||||||
|
|
@ -112,17 +112,22 @@ const EditForm = ({
|
||||||
<IconButton
|
<IconButton
|
||||||
variant={'whiteBase'}
|
variant={'whiteBase'}
|
||||||
icon={<MyIcon name="common/backLight" w={'1rem'} />}
|
icon={<MyIcon name="common/backLight" w={'1rem'} />}
|
||||||
size={'smSquare'}
|
size={'xsSquare'}
|
||||||
aria-label={''}
|
aria-label={''}
|
||||||
w={'32px'}
|
w={'28px'}
|
||||||
h={'32px'}
|
h={'28px'}
|
||||||
onClick={onClose}
|
onClick={onClose}
|
||||||
/>
|
/>
|
||||||
<Box color={'myGray.900'} flex={'1 0 0'} w={'0'} className={'textEllipsis'}>
|
<Box color={'myGray.900'} flex={'1 0 0'} w={'0'} className={'textEllipsis'}>
|
||||||
{name || t('app:skill_empty_name')}
|
{name || t('app:skill_empty_name')}
|
||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
<Button variant={'primary'} onClick={handleSubmit(onSave)}>
|
<Button
|
||||||
|
variant={'primaryOutline'}
|
||||||
|
size={'sm'}
|
||||||
|
leftIcon={<MyIcon name="save" w={'1rem'} />}
|
||||||
|
onClick={handleSubmit(onSave)}
|
||||||
|
>
|
||||||
{t('common:Save')}
|
{t('common:Save')}
|
||||||
</Button>
|
</Button>
|
||||||
</HStack>
|
</HStack>
|
||||||
|
|
@ -133,6 +138,7 @@ const EditForm = ({
|
||||||
</FormLabel>
|
</FormLabel>
|
||||||
<Input
|
<Input
|
||||||
{...register('name', { required: true })}
|
{...register('name', { required: true })}
|
||||||
|
bg={'myGray.50'}
|
||||||
maxLength={30}
|
maxLength={30}
|
||||||
placeholder={t('app:skill_name_placeholder')}
|
placeholder={t('app:skill_name_placeholder')}
|
||||||
/>
|
/>
|
||||||
|
|
@ -146,6 +152,7 @@ const EditForm = ({
|
||||||
<QuestionTip label={t('app:skill_description_placeholder')} />
|
<QuestionTip label={t('app:skill_description_placeholder')} />
|
||||||
</HStack>
|
</HStack>
|
||||||
<Textarea
|
<Textarea
|
||||||
|
bg={'myGray.50'}
|
||||||
rows={3}
|
rows={3}
|
||||||
mt={1}
|
mt={1}
|
||||||
resize={'vertical'}
|
resize={'vertical'}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue