Skip to content

Commit b52ba45

Browse files
committed
fix(app): ensure the odd floating lpc button doesn't clip the table and text doesn't overflow
1 parent 9d1ae88 commit b52ba45

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

app/src/organisms/LabwareOffsetsTable/AccordionDetail.tsx

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
import { useTranslation } from 'react-i18next'
22
import { css } from 'styled-components'
33

4-
import { Flex, RESPONSIVENESS, COLORS, BORDERS } from '@opentrons/components'
4+
import {
5+
Flex,
6+
RESPONSIVENESS,
7+
COLORS,
8+
BORDERS,
9+
NO_WRAP,
10+
} from '@opentrons/components'
511

612
import { OffsetTag } from '/app/organisms/LabwarePositionCheck'
713
import { DeckInfoLabelTextTag } from '/app/molecules/DeckInfoLabelTextTag'
@@ -72,6 +78,7 @@ const deckLabelContainerStyle = (
7278
background-color: ${COLORS.white};
7379
border-radius: ${BORDERS.borderRadius4};
7480
padding-right: ${tagProps.kind === 'vector' ? '' : '2.188rem'};
81+
text-wrap: ${NO_WRAP};
7582
7683
@media ${RESPONSIVENESS.touchscreenMediaQuerySpecs} {
7784
background-color: ${COLORS.grey20};

app/src/organisms/LabwareOffsetsTable/index.tsx

+4-2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import {
77
ListAccordion,
88
StyledText,
99
RESPONSIVENESS,
10+
Flex,
11+
SPACING,
1012
} from '@opentrons/components'
1113

1214
import { selectAllLabwareInfoAndDefaultStatusSorted } from '/app/redux/protocol-runs'
@@ -36,7 +38,7 @@ export function LabwareOffsetsTable(
3638
}
3739

3840
return (
39-
<>
41+
<Flex marginBottom={SPACING.spacing80}>
4042
<ListTable headers={[t('labware_type'), t('total_offsets')]}>
4143
{labwareInfo.map(aLwInfo => (
4244
<ListAccordion
@@ -63,7 +65,7 @@ export function LabwareOffsetsTable(
6365
</ListAccordion>
6466
))}
6567
</ListTable>
66-
</>
68+
</Flex>
6769
)
6870
}
6971

0 commit comments

Comments
 (0)