Always show runtime

This commit is contained in:
2025-07-12 12:41:48 +02:00
parent 7353c7e243
commit 3c5cebedfe

View File

@@ -189,7 +189,7 @@ const JobCardDetails: React.FC<JobCardDetailsProps> = ({ job }) => {
icon={<Calendar className="w-4 h-4" />}
/>
{job.status === 'Running' && job.runtime && job.runtime > 0 && (
{job.runtime && job.runtime > 0 && (
<>
<div className="flex items-center gap-2 text-sm text-gray-400">
<Clock className="w-4 h-4" />
@@ -199,13 +199,17 @@ const JobCardDetails: React.FC<JobCardDetailsProps> = ({ job }) => {
{formatDuration(job.runtime)}
</div>
<div className="flex items-center gap-2 text-sm text-gray-400">
<Clock className="w-4 h-4" />
<span>Remaining:</span>
</div>
<div className="text-sm text-green-400">
{formatDuration(remainingTime)}
</div>
{job.status === 'Running' && (
<>
<div className="flex items-center gap-2 text-sm text-gray-400">
<Clock className="w-4 h-4" />
<span>Remaining:</span>
</div>
<div className="text-sm text-green-400">
{formatDuration(remainingTime)}
</div>
</>
)}
</>
)}
</div>