diff --git a/web/src/components/api-service/embed-modal/index.less b/web/src/components/api-service/embed-modal/index.less index cf3934700..2c85068ca 100644 --- a/web/src/components/api-service/embed-modal/index.less +++ b/web/src/components/api-service/embed-modal/index.less @@ -10,3 +10,12 @@ .id { .linkText(); } + +.darkBg { + background-color: rgb(69, 68, 68); +} + +.darkId { + color: white; + .darkBg(); +} diff --git a/web/src/components/api-service/embed-modal/index.tsx b/web/src/components/api-service/embed-modal/index.tsx index 1caee0a64..d228b7993 100644 --- a/web/src/components/api-service/embed-modal/index.tsx +++ b/web/src/components/api-service/embed-modal/index.tsx @@ -5,6 +5,8 @@ import { useTranslate } from '@/hooks/common-hooks'; import { IModalProps } from '@/interfaces/common'; import { Card, Modal, Tabs, TabsProps, Typography } from 'antd'; +import { useIsDarkTheme } from '@/components/theme-provider'; +import { cn } from '@/lib/utils'; import styles from './index.less'; const { Paragraph, Link } = Typography; @@ -23,6 +25,7 @@ const EmbedModal = ({ isAgent: boolean; }) => { const { t } = useTranslate('chat'); + const isDarkTheme = useIsDarkTheme(); const text = ` ~~~ html @@ -67,7 +70,7 @@ const EmbedModal = ({ return ( ID - + {token} { onClick: handleShowOverviewModal(dialog), label: ( - - {t('publish', { keyPrefix: 'flow' })} + {/* */} + + {t('embedIntoSite', { keyPrefix: 'common' })} ), }, diff --git a/web/src/pages/flow/header/index.tsx b/web/src/pages/flow/header/index.tsx index 5b5d47574..a517727ba 100644 --- a/web/src/pages/flow/header/index.tsx +++ b/web/src/pages/flow/header/index.tsx @@ -78,7 +78,7 @@ const FlowHeader = ({ showChatDrawer, chatDrawerVisible }: IProps) => { onClick={handleShowEmbedModal} disabled={!isBeginNodeDataQueryEmpty} > - {t('publish')} + {t('embedIntoSite', { keyPrefix: 'common' })}