@ -66,7 +66,7 @@ const ChildSegmentDetail: FC<IChildSegmentDetailProps> = ({
const EditTimeText = useMemo ( ( ) = > {
const timeText = formatTime ( {
date : ( childChunkInfo ? . updated_at ? ? 0 ) * 1000 ,
dateFormat : 'MM/DD/YYYY h:mm:ss' ,
dateFormat : ` ${ t ( 'datasetDocuments.segment.dateTimeFormat' ) } ` ,
} )
return ` ${ t ( 'datasetDocuments.segment.editedAt' ) } ${ timeText } `
// eslint-disable-next-line react-hooks/exhaustive-deps
@ -74,7 +74,7 @@ const ChildSegmentDetail: FC<IChildSegmentDetailProps> = ({
return (
< div className = { 'flex h-full flex-col' } >
< div className = { classNames ( 'flex items-center justify-between' , fullScreen ? ' py-3 pr-4 pl-6 border border-divider-subtle' : 'pt-3 pr-3 pl-4 ') } >
< div className = { classNames ( 'flex items-center justify-between' , fullScreen ? ' border border-divider-subtle py-3 pl-6 pr-4' : 'pl-4 pr-3 pt-3 ') } >
< div className = 'flex flex-col' >
< div className = 'system-xl-semibold text-text-primary' > { t ( 'datasetDocuments.segment.editChildChunk' ) } < / div >
< div className = 'flex items-center gap-x-2' >
@ -107,8 +107,8 @@ const ChildSegmentDetail: FC<IChildSegmentDetailProps> = ({
< / div >
< / div >
< / div >
< div className = { classNames ( 'flex grow w-full', fullScreen ? 'flex-row justify-center px-6 pt-6' : 'p y-3 px-4 ') } >
< div className = { classNames ( ' break-all overflow-hidden whitespace-pre-line h-fu ll', fullScreen ? 'w-1/2' : 'w-full' ) } >
< div className = { classNames ( 'flex w-full grow ', fullScreen ? 'flex-row justify-center px-6 pt-6' : 'p x-4 py-3 ') } >
< div className = { classNames ( ' h-full overflow-hidden whitespace-pre-line break-a ll', fullScreen ? 'w-1/2' : 'w-full' ) } >
< ChunkContent
docForm = { docForm }
question = { content }