Skip to content

Commit

Permalink
fix: broken archived workflows ui. Fixes #9614, #9433 (#9634)
Browse files Browse the repository at this point in the history
fix: broken archived workflows ui

Signed-off-by: Dakota Lillie <dakota.lillie@icloud.com>

Signed-off-by: Dakota Lillie <dakota.lillie@icloud.com>
  • Loading branch information
dakotalillie committed Sep 22, 2022
1 parent 9afdea9 commit e6eb02f
Showing 1 changed file with 4 additions and 3 deletions.
Expand Up @@ -25,6 +25,7 @@ import {WorkflowYamlViewer} from '../../../workflows/components/workflow-yaml-vi
require('../../../workflows/components/workflow-details/workflow-details.scss');

const STEP_GRAPH_CONTAINER_MIN_WIDTH = 490;
const STEP_INFO_WIDTH = 570;

interface State {
workflow?: Workflow;
Expand Down Expand Up @@ -188,8 +189,8 @@ export class ArchivedWorkflowDetails extends BasePage<RouteComponentProps<any>,
</div>
</div>
) : (
<div>
<div className='workflow-details__graph-container-wrapper' style={{minWidth: STEP_GRAPH_CONTAINER_MIN_WIDTH, width: '100%'}}>
<div className='workflow-details__graph-container-wrapper'>
<div className='workflow-details__graph-container' style={{minWidth: STEP_GRAPH_CONTAINER_MIN_WIDTH, width: '100%'}}>
{this.tab === 'workflow' ? (
<WorkflowPanel
workflowMetadata={this.state.workflow.metadata}
Expand All @@ -202,7 +203,7 @@ export class ArchivedWorkflowDetails extends BasePage<RouteComponentProps<any>,
)}
</div>
{this.nodeId && (
<div className='workflow-details__step-info' style={{minWidth: STEP_GRAPH_CONTAINER_MIN_WIDTH, float: 'right'}}>
<div className='workflow-details__step-info' style={{width: STEP_INFO_WIDTH, float: 'right'}}>
<button className='workflow-details__step-info-close' onClick={() => (this.nodeId = null)}>
<i className='argo-icon-close' />
</button>
Expand Down

0 comments on commit e6eb02f

Please sign in to comment.