Skip to content

Commit

Permalink
fix: Incorrect alignment for archived workflow. Fixes #9433 (#9439)
Browse files Browse the repository at this point in the history
Signed-off-by: Yuan Tang <terrytangyuan@gmail.com>

Signed-off-by: Yuan Tang <terrytangyuan@gmail.com>
  • Loading branch information
terrytangyuan committed Aug 25, 2022
1 parent 242e5bc commit a09172a
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -24,6 +24,8 @@ import {WorkflowYamlViewer} from '../../../workflows/components/workflow-yaml-vi

require('../../../workflows/components/workflow-details/workflow-details.scss');

const STEP_GRAPH_CONTAINER_MIN_WIDTH = 490;

interface State {
workflow?: Workflow;
links?: Link[];
Expand Down Expand Up @@ -187,7 +189,7 @@ export class ArchivedWorkflowDetails extends BasePage<RouteComponentProps<any>,
</div>
) : (
<div>
<div className='workflow-details__graph-container'>
<div className='workflow-details__graph-container-wrapper' style={{minWidth: STEP_GRAPH_CONTAINER_MIN_WIDTH, width: '100%'}}>
{this.tab === 'workflow' ? (
<WorkflowPanel
workflowMetadata={this.state.workflow.metadata}
Expand All @@ -200,7 +202,7 @@ export class ArchivedWorkflowDetails extends BasePage<RouteComponentProps<any>,
)}
</div>
{this.nodeId && (
<div className='workflow-details__step-info'>
<div className='workflow-details__step-info' style={{minWidth: STEP_GRAPH_CONTAINER_MIN_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 a09172a

Please sign in to comment.