Skip to content

Commit

Permalink
fix(app): various odd modal width fixes under i18n
Browse files Browse the repository at this point in the history
- the takeover modal for maintenance runs (RQA-3868)
- run start confirmation (not tagged yet)
- run cancel confirmation (RQA-3869)

Closes RQA-3868
Closes RQA-3869
  • Loading branch information
sfoster1 committed Jan 17, 2025
1 parent bb78046 commit f4d5d51
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export function ConfirmCancelRunModal({
setShowConfirmCancelRunModal(false)
}}
>
<Flex flexDirection={DIRECTION_COLUMN}>
<Flex flexDirection={DIRECTION_COLUMN} width="100%">
<Flex
flexDirection={DIRECTION_COLUMN}
gridGap={SPACING.spacing12}
Expand Down
4 changes: 3 additions & 1 deletion app/src/organisms/TakeoverModal/TakeoverModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export function TakeoverModal(props: TakeoverModalProps): JSX.Element {
showConfirmTerminateModal ? (
// confirm terminate modal
<OddModal header={terminateHeader}>
<Flex flexDirection={DIRECTION_COLUMN}>
<Flex flexDirection={DIRECTION_COLUMN} width="100%">
<LegacyStyledText as="p" marginBottom={SPACING.spacing32}>
{t('branded:confirm_terminate')}
</LegacyStyledText>
Expand Down Expand Up @@ -79,6 +79,7 @@ export function TakeoverModal(props: TakeoverModalProps): JSX.Element {
gridGap={SPACING.spacing40}
alignItems={ALIGN_CENTER}
justifyContent={ALIGN_CENTER}
width="100%"
>
<Flex
height="12.5rem"
Expand All @@ -88,6 +89,7 @@ export function TakeoverModal(props: TakeoverModalProps): JSX.Element {
color={COLORS.grey60}
padding={SPACING.spacing24}
alignItems={ALIGN_CENTER}
width="100%"
>
<Icon
name="ot-alert"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ export function ConfirmSetupStepsCompleteModal({

return (
<OddModal header={modalHeader} onOutsideClick={onCloseClick}>
<Flex flexDirection={DIRECTION_COLUMN} gridGap={SPACING.spacing32}>
<Flex
flexDirection={DIRECTION_COLUMN}
gridGap={SPACING.spacing32}
width="100%"
>
<LegacyStyledText as="p">
{t('you_havent_confirmed', {
missingSteps: new Intl.ListFormat('en', {
Expand Down

0 comments on commit f4d5d51

Please sign in to comment.