Skip to content

Commit

Permalink
fix(app): full-width jog controls
Browse files Browse the repository at this point in the history
The jog controls were not wide enough in MeasureTip and MeasureNozzle,
where they have only Z displayed. Use the new styled props to specify
width=100%, which fixes the issue.
  • Loading branch information
sfoster1 committed Nov 11, 2020
1 parent 2ce4cb8 commit b4cf09b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
13 changes: 6 additions & 7 deletions app/src/components/CalibrationPanels/MeasureNozzle.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,13 +194,12 @@ export function MeasureNozzle(props: CalibrationPanelProps): React.Node {
</Box>
</Flex>
</Box>
<div>
<JogControls
jog={jog}
stepSizes={[0.1, 1]}
planes={[VERTICAL_PLANE]}
/>
</div>
<JogControls
jog={jog}
stepSizes={[0.1, 1]}
planes={[VERTICAL_PLANE]}
width="100%"
/>
<Flex width="100%" justifyContent={JUSTIFY_CENTER} marginY={SPACING_3}>
<PrimaryBtn onClick={proceed} flex="1">
{isHealthCheck ? CHECK_NOZZLE_Z_AXIS : SAVE_NOZZLE_Z_AXIS}
Expand Down
13 changes: 6 additions & 7 deletions app/src/components/CalibrationPanels/MeasureTip.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,13 +208,12 @@ export function MeasureTip(props: CalibrationPanelProps): React.Node {
</Box>
</Flex>
</Box>
<div>
<JogControls
jog={jog}
stepSizes={[0.1, 1]}
planes={[VERTICAL_PLANE]}
/>
</div>
<JogControls
jog={jog}
stepSizes={[0.1, 1]}
planes={[VERTICAL_PLANE]}
width="100%"
/>
<Flex width="100%" justifyContent={JUSTIFY_CENTER} marginY={SPACING_3}>
<PrimaryBtn title="saveTipLengthButton" onClick={proceed} flex="1">
{isHealthCheck ? CHECK_NOZZLE_Z_AXIS : SAVE_NOZZLE_Z_AXIS}
Expand Down

0 comments on commit b4cf09b

Please sign in to comment.