Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Incorrect alignment for archived workflow. Fixes #9433 #9439

Merged
merged 1 commit into from
Aug 25, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
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