mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-14 18:56:00 +08:00
enhance: improve empty data display for detail panel (#8266)
This commit is contained in:
parent
4d2cd6703b
commit
fe8191b899
@ -16,7 +16,7 @@ type Props = {
|
|||||||
const MetaData: FC<Props> = ({
|
const MetaData: FC<Props> = ({
|
||||||
status,
|
status,
|
||||||
executor,
|
executor,
|
||||||
startTime = 0,
|
startTime,
|
||||||
time,
|
time,
|
||||||
tokens,
|
tokens,
|
||||||
steps = 1,
|
steps = 1,
|
||||||
@ -64,7 +64,7 @@ const MetaData: FC<Props> = ({
|
|||||||
<div className='my-[5px] w-[72px] h-2 rounded-sm bg-[rgba(0,0,0,0.05)]'/>
|
<div className='my-[5px] w-[72px] h-2 rounded-sm bg-[rgba(0,0,0,0.05)]'/>
|
||||||
)}
|
)}
|
||||||
{status !== 'running' && (
|
{status !== 'running' && (
|
||||||
<span>{formatTime(startTime, t('appLog.dateTimeFormat') as string)}</span>
|
<span>{startTime ? formatTime(startTime, t('appLog.dateTimeFormat') as string) : '-'}</span>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -75,7 +75,7 @@ const MetaData: FC<Props> = ({
|
|||||||
<div className='my-[5px] w-[72px] h-2 rounded-sm bg-[rgba(0,0,0,0.05)]'/>
|
<div className='my-[5px] w-[72px] h-2 rounded-sm bg-[rgba(0,0,0,0.05)]'/>
|
||||||
)}
|
)}
|
||||||
{status !== 'running' && (
|
{status !== 'running' && (
|
||||||
<span>{`${time?.toFixed(3)}s`}</span>
|
<span>{time ? `${time.toFixed(3)}s` : '-'}</span>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -71,7 +71,7 @@ const StatusPanel: FC<ResultProps> = ({
|
|||||||
<div className='w-16 h-2 rounded-sm bg-[rgba(0,0,0,0.05)]' />
|
<div className='w-16 h-2 rounded-sm bg-[rgba(0,0,0,0.05)]' />
|
||||||
)}
|
)}
|
||||||
{status !== 'running' && (
|
{status !== 'running' && (
|
||||||
<span>{`${time?.toFixed(3)}s`}</span>
|
<span>{time ? `${time?.toFixed(3)}s` : '-'}</span>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user