diff --git a/web/app/components/app-sidebar/dataset-info/dropdown.tsx b/web/app/components/app-sidebar/dataset-info/dropdown.tsx index c3d2f599b1..25967cd039 100644 --- a/web/app/components/app-sidebar/dataset-info/dropdown.tsx +++ b/web/app/components/app-sidebar/dataset-info/dropdown.tsx @@ -112,6 +112,7 @@ const DropDown = ({ } : { mainAxis: 4, }} + customContainer={document.body} > diff --git a/web/app/components/base/portal-to-follow-elem/index.tsx b/web/app/components/base/portal-to-follow-elem/index.tsx index 759bf60fd0..4d44d77aeb 100644 --- a/web/app/components/base/portal-to-follow-elem/index.tsx +++ b/web/app/components/base/portal-to-follow-elem/index.tsx @@ -31,6 +31,7 @@ export type PortalToFollowElemOptions = { offset?: number | OffsetOptions onOpenChange?: (open: boolean) => void triggerPopupSameWidth?: boolean + customContainer?: HTMLElement | null } export function usePortalToFollowElem({ @@ -39,8 +40,9 @@ export function usePortalToFollowElem({ offset: offsetValue = 0, onOpenChange: setControlledOpen, triggerPopupSameWidth, + customContainer = null, }: PortalToFollowElemOptions = {}) { - const container = document.getElementById('workflow-container') || document.body + const container = customContainer || document.getElementById('workflow-container') || document.body const [localOpen, setLocalOpen] = useState(false) const open = controlledOpen ?? localOpen const handleOpenChange = useCallback((newOpen: boolean) => { diff --git a/web/app/components/datasets/create-from-pipeline/list/template-card/operations.tsx b/web/app/components/datasets/create-from-pipeline/list/template-card/operations.tsx index 7f632a3ef6..b034e5f16d 100644 --- a/web/app/components/datasets/create-from-pipeline/list/template-card/operations.tsx +++ b/web/app/components/datasets/create-from-pipeline/list/template-card/operations.tsx @@ -49,7 +49,7 @@ const Operations = ({ onClick={onClickExport} > - {t('datasetPipeline.operations.exportDSL')} + {t('datasetPipeline.operations.exportPipeline')} diff --git a/web/i18n/en-US/dataset-pipeline.ts b/web/i18n/en-US/dataset-pipeline.ts index fc14a40c01..c83d358eec 100644 --- a/web/i18n/en-US/dataset-pipeline.ts +++ b/web/i18n/en-US/dataset-pipeline.ts @@ -18,7 +18,6 @@ const translation = { choose: 'Choose', details: 'Details', editInfo: 'Edit info', - exportDSL: 'Export DSL', useTemplate: 'Use this Knowledge Pipeline', backToDataSource: 'Back to Data Source', process: 'Process', diff --git a/web/i18n/zh-Hans/dataset-pipeline.ts b/web/i18n/zh-Hans/dataset-pipeline.ts index 81c55010b5..41c538ce20 100644 --- a/web/i18n/zh-Hans/dataset-pipeline.ts +++ b/web/i18n/zh-Hans/dataset-pipeline.ts @@ -18,7 +18,6 @@ const translation = { choose: '选择', details: '详情', editInfo: '编辑信息', - exportDSL: '导出 DSL', useTemplate: '使用此知识流水线', backToDataSource: '返回数据源', process: '处理',