diff --git a/web/app/components/datasets/documents/detail/completed/child-segment-detail.tsx b/web/app/components/datasets/documents/detail/completed/child-segment-detail.tsx index 366bb9a850fe03..867ec66f902d01 100644 --- a/web/app/components/datasets/documents/detail/completed/child-segment-detail.tsx +++ b/web/app/components/datasets/documents/detail/completed/child-segment-detail.tsx @@ -2,6 +2,7 @@ import React, { type FC, useMemo, useState } from 'react' import { useTranslation } from 'react-i18next' import { RiCloseLine, + RiCollapseDiagonalLine, RiExpandDiagonalLine, } from '@remixicon/react' import ActionButtons from './common/action-buttons' @@ -99,7 +100,7 @@ const ChildSegmentDetail: FC = ({ )}
- + {fullScreen ? : }
diff --git a/web/app/components/datasets/documents/detail/completed/segment-detail.tsx b/web/app/components/datasets/documents/detail/completed/segment-detail.tsx index c96ec42c12b045..e63e4eac0f3835 100644 --- a/web/app/components/datasets/documents/detail/completed/segment-detail.tsx +++ b/web/app/components/datasets/documents/detail/completed/segment-detail.tsx @@ -2,6 +2,7 @@ import React, { type FC, useMemo, useState } from 'react' import { useTranslation } from 'react-i18next' import { RiCloseLine, + RiCollapseDiagonalLine, RiExpandDiagonalLine, } from '@remixicon/react' import { useDocumentContext } from '../index' @@ -37,7 +38,7 @@ const SegmentDetail: FC = ({ docForm, }) => { const { t } = useTranslation() - const [question, setQuestion] = useState(segInfo?.content || '') + const [question, setQuestion] = useState(isEditMode ? segInfo?.content || '' : segInfo?.sign_content || '') const [answer, setAnswer] = useState(segInfo?.answer || '') const [keywords, setKeywords] = useState(segInfo?.keywords || []) const { eventEmitter } = useEventEmitterContextContext() @@ -129,7 +130,7 @@ const SegmentDetail: FC = ({ )}
- + {fullScreen ? : }