Skip to content

Commit c630b88

Browse files
authored
fix(protocol-designer): set PathField width to 100% (#17370)
Fixes width of `PathField` `PathButton` used in move liquid step form
1 parent 410bfa9 commit c630b88

File tree

1 file changed

+7
-3
lines changed
  • protocol-designer/src/pages/Designer/ProtocolSteps/StepForm/PipetteFields

1 file changed

+7
-3
lines changed

protocol-designer/src/pages/Designer/ProtocolSteps/StepForm/PipetteFields/PathField.tsx

+7-3
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ interface PathButtonProps {
6969
}
7070

7171
function PathButton(props: PathButtonProps): JSX.Element {
72-
const { disabled, onClick, id, path, selected, subtitle } = props
72+
const { disabled, onClick, path, selected, subtitle } = props
7373
const [targetProps, tooltipProps] = useHoverTooltip({
7474
placement: TOOLTIP_TOP_START,
7575
})
@@ -79,14 +79,18 @@ function PathButton(props: PathButtonProps): JSX.Element {
7979
<Tooltip tooltipProps={tooltipProps} maxWidth="24.5rem">
8080
<Flex gridGap={SPACING.spacing8} flexDirection={DIRECTION_COLUMN}>
8181
<Box>{t(`step_edit_form.field.path.title.${path}`)}</Box>
82-
<img src={PATH_ANIMATION_IMAGES[path]} width="361px" />
82+
<img
83+
src={PATH_ANIMATION_IMAGES[path]}
84+
width="361px"
85+
alt="path animation"
86+
/>
8387
<Box>{subtitle}</Box>
8488
</Flex>
8589
</Tooltip>
8690
)
8791

8892
return (
89-
<Flex {...targetProps} key={id}>
93+
<Flex {...targetProps} flexDirection={DIRECTION_COLUMN}>
9094
{tooltip}
9195
<RadioButton
9296
width="100%"

0 commit comments

Comments
 (0)