Skip to content

Commit

Permalink
fix(app): fix desktop pause intervention sizing
Browse files Browse the repository at this point in the history
  • Loading branch information
mjhuff committed Nov 20, 2024
1 parent 3d22cbd commit c05f854
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 21 deletions.
6 changes: 2 additions & 4 deletions app/src/molecules/InterventionModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -179,14 +179,12 @@ export function InterventionModal({
}

const ICON_STYLE = css`
width: ${SPACING.spacing16};
height: ${SPACING.spacing16};
width: ${SPACING.spacing32};
height: ${SPACING.spacing32};
margin: ${SPACING.spacing4};
cursor: ${CURSOR_POINTER};
@media (${RESPONSIVENESS.touchscreenMediaQuerySpecs}) {
width: ${SPACING.spacing32};
height: ${SPACING.spacing32};
margin: ${SPACING.spacing12};
}
`
26 changes: 9 additions & 17 deletions app/src/organisms/InterventionModal/PauseInterventionContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
TYPOGRAPHY,

Check failure on line 13 in app/src/organisms/InterventionModal/PauseInterventionContent.tsx

View workflow job for this annotation

GitHub Actions / js checks

'TYPOGRAPHY' is defined but never used
useInterval,
LegacyStyledText,

Check failure on line 15 in app/src/organisms/InterventionModal/PauseInterventionContent.tsx

View workflow job for this annotation

GitHub Actions / js checks

'LegacyStyledText' is defined but never used
StyledText,
} from '@opentrons/components'

import { EMPTY_TIMESTAMP } from '/app/resources/runs'
Expand Down Expand Up @@ -61,20 +62,6 @@ const PAUSE_HEADER_STYLE = css`
}
`

const PAUSE_TEXT_STYLE = css`
${TYPOGRAPHY.h1Default}
@media ${RESPONSIVENESS.touchscreenMediaQuerySpecs} {
${TYPOGRAPHY.level4HeaderSemiBold}
}
`

const PAUSE_TIME_STYLE = css`
${TYPOGRAPHY.h1Default}
@media ${RESPONSIVENESS.touchscreenMediaQuerySpecs} {
${TYPOGRAPHY.level1Header}
}
`

interface PauseHeaderProps {
startedAt: string | null
}
Expand All @@ -95,10 +82,15 @@ function PauseHeader({ startedAt }: PauseHeaderProps): JSX.Element {

return (
<Flex css={PAUSE_HEADER_STYLE}>
<LegacyStyledText css={PAUSE_TEXT_STYLE}>
<StyledText
desktopStyle="bodyDefaultSemiBold"
oddStyle="level4HeaderSemiBold"
>
{i18n.format(t('paused_for'), 'capitalize')}
</LegacyStyledText>
<LegacyStyledText css={PAUSE_TIME_STYLE}>{runTime}</LegacyStyledText>
</StyledText>
<StyledText desktopStyle="bodyDefaultSemiBold" oddStyle="level1Header">
{runTime}
</StyledText>
</Flex>
)
}

0 comments on commit c05f854

Please sign in to comment.