Skip to content

Commit

Permalink
fix(ui): ensure WorkflowsRow message is not too long (argoproj#11908)
Browse files Browse the repository at this point in the history
  • Loading branch information
agilgur5 authored Oct 3, 2023
1 parent db3a355 commit 743d297
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions ui/src/app/workflows/components/workflows-row/workflows-row.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ export function WorkflowsRow(props: WorkflowsRowProps) {
<Ticker>{() => <DurationPanel phase={wf.status.phase} duration={wfDuration(wf.status)} estimatedDuration={wf.status.estimatedDuration} />}</Ticker>
</div>
<div className='columns small-1'>{wf.status.progress || '-'}</div>
<div className='columns small-2'>{wf.status.message || '-'}</div>
{/* CSS has text-overflow, but sometimes it's still too long for the column for some reason, so slice it too. 180 chars are not visible on a 4k screen */}
<div className='columns small-2'>{wf.status.message?.slice(0, 180) || '-'}</div>
<div className='columns small-1'>
<div className='workflows-list__labels-container'>
<div
Expand Down Expand Up @@ -93,17 +94,7 @@ export function WorkflowsRow(props: WorkflowsRowProps) {
</div>
);
})}
{hideDrawer ? (
<span />
) : (
<WorkflowDrawer
name={wf.metadata.name}
namespace={wf.metadata.namespace}
onChange={key => {
props.onChange(key);
}}
/>
)}
{hideDrawer ? <span /> : <WorkflowDrawer name={wf.metadata.name} namespace={wf.metadata.namespace} onChange={props.onChange} />}
</Link>
</div>
</div>
Expand Down

0 comments on commit 743d297

Please sign in to comment.