Skip to content

Commit

Permalink
fix(protocol-designer): set PathField width to 100% (#17370)
Browse files Browse the repository at this point in the history
Fixes width of `PathField` `PathButton` used in move liquid step form
  • Loading branch information
ncdiehl11 authored Jan 28, 2025
1 parent 410bfa9 commit c630b88
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ interface PathButtonProps {
}

function PathButton(props: PathButtonProps): JSX.Element {
const { disabled, onClick, id, path, selected, subtitle } = props
const { disabled, onClick, path, selected, subtitle } = props
const [targetProps, tooltipProps] = useHoverTooltip({
placement: TOOLTIP_TOP_START,
})
Expand All @@ -79,14 +79,18 @@ function PathButton(props: PathButtonProps): JSX.Element {
<Tooltip tooltipProps={tooltipProps} maxWidth="24.5rem">
<Flex gridGap={SPACING.spacing8} flexDirection={DIRECTION_COLUMN}>
<Box>{t(`step_edit_form.field.path.title.${path}`)}</Box>
<img src={PATH_ANIMATION_IMAGES[path]} width="361px" />
<img
src={PATH_ANIMATION_IMAGES[path]}
width="361px"
alt="path animation"
/>
<Box>{subtitle}</Box>
</Flex>
</Tooltip>
)

return (
<Flex {...targetProps} key={id}>
<Flex {...targetProps} flexDirection={DIRECTION_COLUMN}>
{tooltip}
<RadioButton
width="100%"
Expand Down

0 comments on commit c630b88

Please sign in to comment.