Skip to content

Commit

Permalink
front: fix resizable space time chart in stdcm debug results
Browse files Browse the repository at this point in the history
Signed-off-by: Clara Ni <[email protected]>
  • Loading branch information
clarani committed Feb 19, 2025
1 parent 8ebfe52 commit 5b0c567
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const StdcmDebugResults = ({ simulationOutputs }: StdcmDebugResultsProps) => {
const { pathProperties, results, speedSpaceChartData } = successfulSimulation;

return (
<>
<div className="stdcm-debug-results">
{projectedData &&
projectedData?.spaceTimeData.length > 0 &&
pathProperties.manchetteOperationalPoints && (
Expand Down Expand Up @@ -102,7 +102,7 @@ const StdcmDebugResults = ({ simulationOutputs }: StdcmDebugResultsProps) => {
/>
</div>
</div>
</>
</div>
);
};

Expand Down
8 changes: 8 additions & 0 deletions front/src/styles/scss/applications/stdcm/_results.scss
Original file line number Diff line number Diff line change
Expand Up @@ -375,4 +375,12 @@
0 0 0 1px rgba(0, 0, 0, 0.25) inset;
}
}

.stdcm-debug-results {
position: relative;

.react-draggable {
transform: translate(0)
}
}
}

0 comments on commit 5b0c567

Please sign in to comment.