Skip to content

Commit a0ed501

Browse files
author
Roman Snapko
committed
Update deleted step icon and styling in flow run details
1 parent e2d4d78 commit a0ed501

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

packages/react-ui/src/app/features/builder/run-details/flow-step-details-card-item.tsx

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
CollapsibleContent,
77
CollapsibleTrigger,
88
} from '@openops/components/ui';
9-
import { ChevronRight, TrashIcon } from 'lucide-react';
9+
import { ChevronRight, SquareX } from 'lucide-react';
1010
import React, { useCallback, useMemo } from 'react';
1111

1212
import { blocksHooks } from '@/app/features/blocks/lib/blocks-hook';
@@ -153,12 +153,16 @@ const FlowStepDetailsCardItem = ({
153153
src={stepMetadata?.logoUrl}
154154
/>
155155
) : (
156-
<TrashIcon className="w-6 h-6" />
156+
<SquareX className="w-6 h-6 text-muted-foreground" />
157157
)}
158158

159-
<div className="break-all truncate">{`${
160-
stepIndex !== -1 ? `${stepIndex + 1}. ` : ''
161-
}${step?.displayName ?? t('Deleted Step')}`}</div>
159+
<div
160+
className={cn('break-all truncate', {
161+
'text-muted-foreground italic': !step?.displayName,
162+
})}
163+
>{`${stepIndex !== -1 ? `${stepIndex + 1}. ` : ''}${
164+
step?.displayName ?? t('Deleted Step')
165+
}`}</div>
162166
<div className="w-2"></div>
163167
<div className="flex gap-1 justify-end items-center flex-grow">
164168
{isLoopStep && (

0 commit comments

Comments
 (0)