Skip to content

Commit

Permalink
fix(app): fix ODD liquids CSS (#16886)
Browse files Browse the repository at this point in the history
Closes RQA-3581
  • Loading branch information
mjhuff authored Nov 19, 2024
1 parent 888a0ab commit 556329b
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions app/src/organisms/ODD/ProtocolSetup/ProtocolSetupLiquids/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,26 +153,30 @@ export function LiquidsList(props: LiquidsListProps): JSX.Element {
</Flex>
<Flex
flexDirection={DIRECTION_COLUMN}
alignItems={TYPOGRAPHY.textAlignCenter}
alignItems={TYPOGRAPHY.textAlignLeft}
width="31rem"
overflow="hidden"
>
<StyledText oddStyle="bodyTextSemiBold">
{liquid.displayName}
{liquid.displayName.length > 33
? `${liquid.displayName.substring(0, 33)}...`
: liquid.displayName}
</StyledText>
</Flex>
<Flex flex="1">
<Flex justifyContent={JUSTIFY_SPACE_BETWEEN} width="18.5rem">
<Flex
backgroundColor={`${COLORS.black90}${COLORS.opacity20HexCode}`}
borderRadius={BORDERS.borderRadius8}
height="2.75rem"
padding={`${SPACING.spacing8} ${SPACING.spacing12}`}
alignItems={TYPOGRAPHY.textAlignCenter}
marginLeft="30.825rem"
alignItems={TYPOGRAPHY.textAlignLeft}
overflow="hidden"
>
{getTotalVolumePerLiquidId(liquid.id, labwareByLiquidId)}{' '}
{MICRO_LITERS}
</Flex>
<Icon name={openItem ? 'chevron-up' : 'chevron-right'} size="3rem" />
</Flex>
<Icon name={openItem ? 'chevron-up' : 'chevron-right'} size="3rem" />
</Flex>
{openItem ? (
<LiquidDetails
Expand Down

0 comments on commit 556329b

Please sign in to comment.