Skip to content

Commit

Permalink
feat(app): fix small ui bugs on ODD
Browse files Browse the repository at this point in the history
fix failed run modal text wrapping issue and RunSummary splash screen's textTransform issue

close RAUT-703 and RAUT-704
  • Loading branch information
koji committed Sep 21, 2023
1 parent 1ac718e commit 06a299d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/src/assets/localization/en/run_details.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"comment_step": "Comment",
"comment": "Comment",
"complete_protocol_to_download": "Complete the protocol to download the run log",
"contact_information": "Download the run logs from the Opentrons App and send it to [email protected] for assistance.",
"contact_information": "Download the robot logs from the Opentrons App and send it to [email protected] for assistance.",
"current_step_pause_timer": "Timer",
"current_step_pause": "Current Step - Paused by User",
"current_step": "Current Step",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,13 @@ export function RunFailedModal({
</StyledText>
</Flex>
</Flex>
<StyledText as="p" textAlign={TYPOGRAPHY.textAlignLeft}>
<StyledText
as="p"
textAlign={TYPOGRAPHY.textAlignLeft}
css={css`
word-break: break-word;
`}
>
{t('contact_information')}
</StyledText>
</Flex>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ describe('RunFailedModal', () => {
getByText('Error 1000: hardwareCommunicationError')
getByText('Error with code 1000 (highest priority)')
getByText(
'Download the run logs from the Opentrons App and send it to [email protected] for assistance.'
'Download the robot logs from the Opentrons App and send it to [email protected] for assistance.'
)
getByText('Close')
})
Expand Down
1 change: 0 additions & 1 deletion app/src/pages/OnDeviceDisplay/RunSummary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,6 @@ const SplashFrame = styled(Flex)`
const ProtocolName = styled.h4`
font-weight: ${TYPOGRAPHY.fontWeightSemiBold};
text-align: ${TYPOGRAPHY.textAlignLeft};
text-transform: ${TYPOGRAPHY.textTransformCapitalize};
font-size: ${TYPOGRAPHY.fontSize28};
line-height: ${TYPOGRAPHY.lineHeight36};
color: ${COLORS.darkBlack70};
Expand Down

0 comments on commit 06a299d

Please sign in to comment.