diff --git a/protocol-designer/src/pages/Designer/OffDeck/OffDeckDetails.tsx b/protocol-designer/src/pages/Designer/OffDeck/OffDeckDetails.tsx index b062915271c..0e3f15ae8a8 100644 --- a/protocol-designer/src/pages/Designer/OffDeck/OffDeckDetails.tsx +++ b/protocol-designer/src/pages/Designer/OffDeck/OffDeckDetails.tsx @@ -12,6 +12,7 @@ import { EmptySelectorButton, Flex, JUSTIFY_CENTER, + JUSTIFY_FLEX_END, LabwareRender, OVERFLOW_AUTO, RobotWorkSpace, @@ -59,16 +60,8 @@ export function OffDeckDetails(props: OffDeckDetailsProps): JSX.Element { ) const containerWidth = tab === 'startingDeck' ? '100vw' : '75vw' - const paddingLeftWithHover = - hoverSlot == null - ? `calc((${containerWidth} - (${SPACING.spacing24} * 2) - ${OFF_DECK_MAP_WIDTH}) / 2)` - : SPACING.spacing24 - const paddingLeft = tab === 'startingDeck' ? paddingLeftWithHover : undefined - const padding = - tab === 'protocolSteps' - ? SPACING.spacing24 - : `${SPACING.spacing40} ${paddingLeft}` const stepDetailsContainerWidth = `calc(((${containerWidth} - ${OFF_DECK_MAP_WIDTH}) / 2) - (${SPACING.spacing24} * 3))` + const paddingRight = `calc((100% - ${OFF_DECK_MAP_WIDTH}) / 2)` return ( {hoverSlot != null ? (