feat: parent child retrieval (#12106)

Signed-off-by: -LAN- <laipz8200@outlook.com>
Co-authored-by: -LAN- <laipz8200@outlook.com>
This commit is contained in:
Wu Tianwei
2024-12-26 12:01:51 +08:00
committed by GitHub
parent efdd54a670
commit 49feff082f
196 changed files with 9035 additions and 3115 deletions

View File

@@ -1,6 +1,6 @@
.filePreview {
@apply flex flex-col border-l border-gray-200 shrink-0;
width: 528px;
width: 100%;
background-color: #fcfcfd;
}
@@ -48,5 +48,6 @@
}
.fileContent {
white-space: pre-line;
word-break: break-all;
}

View File

@@ -44,7 +44,7 @@ const FilePreview = ({
}, [file])
return (
<div className={cn(s.filePreview)}>
<div className={cn(s.filePreview, 'h-full')}>
<div className={cn(s.previewHeader)}>
<div className={cn(s.title)}>
<span>{t('datasetCreation.stepOne.filePreview')}</span>
@@ -59,7 +59,7 @@ const FilePreview = ({
<div className={cn(s.previewContent)}>
{loading && <div className={cn(s.loading)} />}
{!loading && (
<div className={cn(s.fileContent)}>{previewContent}</div>
<div className={cn(s.fileContent, 'body-md-regular')}>{previewContent}</div>
)}
</div>
</div>