fix zoom issue

This commit is contained in:
Shubham Takode 2024-03-04 17:03:20 +05:30
parent 7f88d69882
commit fad1ff29dd
2 changed files with 3 additions and 3 deletions

View File

@ -130,7 +130,7 @@ export const PipelineFlowComponent: FunctionComponent<IMyComponentProps> = (
onEdgeUpdateEnd={onEdgeUpdateEnd} onEdgeUpdateEnd={onEdgeUpdateEnd}
onEdgeUpdateStart={onEdgeUpdateStart} onEdgeUpdateStart={onEdgeUpdateStart}
defaultViewport={{ x: 0, y: 0, zoom: 1 }} defaultViewport={{ x: 0, y: 0, zoom: 1 }}
maxZoom={1.5} maxZoom={1}
onConnect={onConnect} onConnect={onConnect}
onEdgeUpdate={onEdgeUpdate} onEdgeUpdate={onEdgeUpdate}
fitView fitView

View File

@ -26,14 +26,14 @@ export default function PipelineStepComponent({ data, selected, ...others }) {
className={"al-icon sm-md al-ico-type-" + (data.experimentDetails?.type ? (data.experimentDetails.type.toString()).replace('_', '-') : 'training')} className={"al-icon sm-md al-ico-type-" + (data.experimentDetails?.type ? (data.experimentDetails.type.toString()).replace('_', '-') : 'training')}
data-id="stepResultButton" data-id="stepResultButton"
></i> ></i>
<div className="title" style={{ <div className="title" title={data?.name} style={{
flex: 1, flex: 1,
maxWidth: "108px", maxWidth: "108px",
overflow: "hidden", overflow: "hidden",
textOverflow: "ellipsis", textOverflow: "ellipsis",
whiteSpace: "nowrap" whiteSpace: "nowrap"
} }
}>{data.name}</div> }>{data?.name}</div>
</div> </div>
<div className="step-part step-footer queued" style={{ <div className="step-part step-footer queued" style={{