From 69f70c2ed6b1b1852d82457956c0a498ea3d20cd Mon Sep 17 00:00:00 2001 From: bill Date: Wed, 23 Oct 2024 17:00:17 +0800 Subject: [PATCH] feat: Limit the maximum value of auto keywords to 30 #2687 --- web/src/components/auto-keywords-item.tsx | 58 +++++++++++++++-------- 1 file changed, 39 insertions(+), 19 deletions(-) diff --git a/web/src/components/auto-keywords-item.tsx b/web/src/components/auto-keywords-item.tsx index c703d050bf0..61ea50469c0 100644 --- a/web/src/components/auto-keywords-item.tsx +++ b/web/src/components/auto-keywords-item.tsx @@ -1,21 +1,29 @@ import { useTranslate } from '@/hooks/common-hooks'; -import { Form, InputNumber } from 'antd'; - -const style = { - width: '100%', -}; +import { Flex, Form, InputNumber, Slider } from 'antd'; export const AutoKeywordsItem = () => { const { t } = useTranslate('knowledgeDetails'); return ( - - + + + + + + + + + + + ); }; @@ -24,13 +32,25 @@ export const AutoQuestionsItem = () => { const { t } = useTranslate('knowledgeDetails'); return ( - - + + + + + + + + + + + ); };