浏览代码

fix: update details display to conditionally show creator information (#25952)

tags/1.9.0
Wu Tianwei 1 个月前
父节点
当前提交
bad59c95bc
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 16 次插入8 次删除
  1. 16
    8
      web/app/components/datasets/create-from-pipeline/list/template-card/details/index.tsx

+ 16
- 8
web/app/components/datasets/create-from-pipeline/list/template-card/details/index.tsx 查看文件

@@ -63,7 +63,7 @@ const Details = ({
>
<RiCloseLine className='size-4 text-text-tertiary' />
</button>
<div className='flex items-center gap-x-3 pb-2 pl-4 pr-12 pt-6'>
<div className='flex items-start gap-x-3 pb-2 pl-4 pr-12 pt-6'>
<AppIcon
size='large'
iconType={appIcon.type as AppIconType}
@@ -72,15 +72,23 @@ const Details = ({
imageUrl={appIcon.type === 'image' ? appIcon.url : undefined}
showEditIcon
/>
<div className='flex grow flex-col gap-y-1 py-px'>
<div className='system-md-semibold text-text-secondary'>
<div className='flex grow flex-col gap-y-1 overflow-hidden py-px'>
<div
className='system-md-semibold truncate text-text-secondary'
title={pipelineTemplateInfo.name}
>
{pipelineTemplateInfo.name}
</div>
<div className='system-2xs-medium-uppercase text-text-tertiary'>
{t('datasetPipeline.details.createdBy', {
author: pipelineTemplateInfo.created_by,
})}
</div>
{pipelineTemplateInfo.created_by && (
<div
className='system-2xs-medium-uppercase truncate text-text-tertiary'
title={pipelineTemplateInfo.created_by}
>
{t('datasetPipeline.details.createdBy', {
author: pipelineTemplateInfo.created_by,
})}
</div>
)}
</div>
</div>
<p className='system-sm-regular px-4 pb-2 pt-1 text-text-secondary'>

正在加载...
取消
保存