Skip to content

Commit

Permalink
web informational content
Browse files Browse the repository at this point in the history
  • Loading branch information
mjhuff committed Mar 18, 2024
1 parent 28a2c3c commit 65d877a
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { useTranslation } from 'react-i18next'
import {
Flex,
Box,
BORDERS,
SPACING,
COLORS,
TYPOGRAPHY,
Expand Down Expand Up @@ -85,6 +86,7 @@ export function HistoricalProtocolRunOffsetDrawer(
backgroundColor={COLORS.grey20}
width="100%"
padding={`${SPACING.spacing16} ${SPACING.spacing8} ${SPACING.spacing16} ${SPACING.spacing48}`}
borderRadius={BORDERS.borderRadius4}
>
{isOutOfDate ? (
<Banner type="warning" marginTop={SPACING.spacing8}>
Expand Down Expand Up @@ -145,6 +147,7 @@ export function HistoricalProtocolRunOffsetDrawer(
padding={SPACING.spacing8}
backgroundColor={COLORS.white}
marginY={SPACING.spacing8}
borderRadius={BORDERS.borderRadius4}
>
<StyledText width="23.5%" as="label">
{t('slot', { slotName: offset.location.slotName })}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,7 @@ export function ProtocolRunHeader({
display="grid"
gridTemplateColumns="4fr 6fr 4fr"
padding={SPACING.spacing8}
borderRadius={BORDERS.borderRadius4}
>
<LabeledValue
label={t('protocol_start')}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
import {
Flex,
DIRECTION_COLUMN,
BORDERS,
SPACING,
TYPOGRAPHY,
COLORS,
Expand Down Expand Up @@ -88,7 +89,12 @@ export function CurrentOffsetsTable(
: offset.definitionUri
return (
<OffsetTableRow key={offset.id}>
<OffsetTableDatum>
<OffsetTableDatum
css={`
border-radius: ${BORDERS.borderRadius4} 0 0
${BORDERS.borderRadius4};
`}
>
{getDisplayLocation(
offset.location,
getLabwareDefinitionsFromCommands(commands),
Expand All @@ -97,7 +103,12 @@ export function CurrentOffsetsTable(
)}
</OffsetTableDatum>
<OffsetTableDatum>{labwareDisplayName}</OffsetTableDatum>
<OffsetTableDatum>
<OffsetTableDatum
css={`
border-radius: 0 ${BORDERS.borderRadius4}
${BORDERS.borderRadius4} 0;
`}
>
<OffsetVector {...offset.vector} />
</OffsetTableDatum>
</OffsetTableRow>
Expand Down
8 changes: 4 additions & 4 deletions app/src/organisms/LabwarePositionCheck/ResultsSummary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -388,13 +388,13 @@ const TerseTable = styled('table')`
margin: ${SPACING.spacing16} 0;
text-align: left;
tr td:first-child {
border-top-left-radius: ${BORDERS.borderRadius12};
border-bottom-left-radius: ${BORDERS.borderRadius12};
border-top-left-radius: ${BORDERS.borderRadius8};
border-bottom-left-radius: ${BORDERS.borderRadius8};
padding-left: ${SPACING.spacing12};
}
tr td:last-child {
border-top-right-radius: ${BORDERS.borderRadius12};
border-bottom-right-radius: ${BORDERS.borderRadius12};
border-top-right-radius: ${BORDERS.borderRadius8};
border-bottom-right-radius: ${BORDERS.borderRadius8};
padding-right: ${SPACING.spacing12};
}
`
Expand Down

0 comments on commit 65d877a

Please sign in to comment.