diff --git a/src/components/Dashboard/common/PrinterPositionPanel.jsx b/src/components/Dashboard/common/PrinterPositionPanel.jsx index 1233754..fc1e95c 100644 --- a/src/components/Dashboard/common/PrinterPositionPanel.jsx +++ b/src/components/Dashboard/common/PrinterPositionPanel.jsx @@ -30,6 +30,17 @@ const CustomCollapse = styled(Collapse)` } ` +const controlLabelStyle = { + whiteSpace: 'nowrap', + flexShrink: 0, + minWidth: '120px' +} + +const controlInputStyle = { + flex: 1, + minWidth: 0 +} + const PrinterPositionPanel = ({ id, showControls = true, @@ -234,16 +245,22 @@ const PrinterPositionPanel = ({ {showControls && ( <> - - - Max Velocity: - + + + + Max Velocity: + + setMaxVelocity(value)} onPressEnter={handleSetMaxVelocity} @@ -259,92 +276,104 @@ const PrinterPositionPanel = ({ Set - + - - - Max Acceleration: - - setMaxAcceleration(value)} - onPressEnter={handleSetMaxAcceleration} - size='small' - disabled={controlsDisabled} - /> - - - - + + + Max Acceleration: + + + setMaxAcceleration(value)} + onPressEnter={handleSetMaxAcceleration} + size='small' + disabled={controlsDisabled} + /> + + + - - - Sqr Corner Vel: - - setSquareCornerVelocity(value)} - onPressEnter={handleSetSquareCornerVelocity} - size='small' - disabled={controlsDisabled} - /> - - - - + + + Sqr Corner Vel: + + + setSquareCornerVelocity(value)} + onPressEnter={handleSetSquareCornerVelocity} + size='small' + disabled={controlsDisabled} + /> + + + - - - Min Cruise Ratio: - - setMinCruiseRatio(value / 100)} - onPressEnter={handleSetMinCruiseRatio} - size='small' - disabled={controlsDisabled} - /> - - - - - + + + Min Cruise Ratio: + + + setMinCruiseRatio(value / 100)} + onPressEnter={handleSetMinCruiseRatio} + size='small' + disabled={controlsDisabled} + /> + + + + )} Homing Origin: @@ -420,16 +449,22 @@ const PrinterPositionPanel = ({ {showControls && ( <> - - - Speed Factor: - + + + + Speed Factor: + + setSpeedFactor(value)} onPressEnter={handleSetSpeedFactor} @@ -445,17 +480,23 @@ const PrinterPositionPanel = ({ Set - + - - Extrude Factor: - + + + Extrude Factor: + + setExtrudeFactor(value)} onPressEnter={handleSetExtrudeFactor} @@ -471,8 +512,8 @@ const PrinterPositionPanel = ({ Set - - + + )} setExtruderTarget(value || 0)} onPressEnter={() => @@ -253,7 +253,7 @@ const PrinterTemperaturePanel = ({ value={bedTarget} min={0} max={300} - style={{ width: '120px' }} + style={{ width: '140px' }} addonAfter='°C' onChange={(value) => setBedTarget(value || 0)} onPressEnter={() =>