fix: update details display to conditionally show creator information (#25952)
This commit is contained in:
parent
9f138ef246
commit
bad59c95bc
1 changed files with 16 additions and 8 deletions
|
|
@ -63,7 +63,7 @@ const Details = ({
|
||||||
>
|
>
|
||||||
<RiCloseLine className='size-4 text-text-tertiary' />
|
<RiCloseLine className='size-4 text-text-tertiary' />
|
||||||
</button>
|
</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
|
<AppIcon
|
||||||
size='large'
|
size='large'
|
||||||
iconType={appIcon.type as AppIconType}
|
iconType={appIcon.type as AppIconType}
|
||||||
|
|
@ -72,15 +72,23 @@ const Details = ({
|
||||||
imageUrl={appIcon.type === 'image' ? appIcon.url : undefined}
|
imageUrl={appIcon.type === 'image' ? appIcon.url : undefined}
|
||||||
showEditIcon
|
showEditIcon
|
||||||
/>
|
/>
|
||||||
<div className='flex grow flex-col gap-y-1 py-px'>
|
<div className='flex grow flex-col gap-y-1 overflow-hidden py-px'>
|
||||||
<div className='system-md-semibold text-text-secondary'>
|
<div
|
||||||
|
className='system-md-semibold truncate text-text-secondary'
|
||||||
|
title={pipelineTemplateInfo.name}
|
||||||
|
>
|
||||||
{pipelineTemplateInfo.name}
|
{pipelineTemplateInfo.name}
|
||||||
</div>
|
</div>
|
||||||
<div className='system-2xs-medium-uppercase text-text-tertiary'>
|
{pipelineTemplateInfo.created_by && (
|
||||||
{t('datasetPipeline.details.createdBy', {
|
<div
|
||||||
author: pipelineTemplateInfo.created_by,
|
className='system-2xs-medium-uppercase truncate text-text-tertiary'
|
||||||
})}
|
title={pipelineTemplateInfo.created_by}
|
||||||
</div>
|
>
|
||||||
|
{t('datasetPipeline.details.createdBy', {
|
||||||
|
author: pipelineTemplateInfo.created_by,
|
||||||
|
})}
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<p className='system-sm-regular px-4 pb-2 pt-1 text-text-secondary'>
|
<p className='system-sm-regular px-4 pb-2 pt-1 text-text-secondary'>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue