Skip to content

Commit

Permalink
fix(app): modify slideout restore value link layout
Browse files Browse the repository at this point in the history
modify slideout restore value link layout

close RQA-2644
  • Loading branch information
koji committed May 1, 2024
1 parent d929a2b commit ce6c79f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions app/src/organisms/ChooseProtocolSlideout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -341,15 +341,14 @@ export function ChooseProtocolSlideoutComponent(
}

const pageTwoBody = (
<Flex flexDirection={DIRECTION_COLUMN}>
<Flex flexDirection={DIRECTION_COLUMN} gridGap={SPACING.spacing10}>
<Flex justifyContent={JUSTIFY_END}>
<LinkComponent
textAlign={TYPOGRAPHY.textAlignRight}
css={
isRestoreDefaultsLinkEnabled ? ENABLED_LINK_CSS : DISABLED_LINK_CSS
}
onClick={resetRunTimeParameters}
paddingBottom={SPACING.spacing10}
{...targetProps}
>
{t('protocol_details:restore_defaults')}
Expand Down
3 changes: 1 addition & 2 deletions app/src/organisms/ChooseRobotSlideout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ export function ChooseRobotSlideout(

const pageTwoBody =
runTimeParametersOverrides != null ? (
<Flex flexDirection={DIRECTION_COLUMN}>
<Flex flexDirection={DIRECTION_COLUMN} gridGap={SPACING.spacing10}>
<Flex justifyContent={JUSTIFY_END}>
<Link
textAlign={TYPOGRAPHY.textAlignRight}
Expand All @@ -510,7 +510,6 @@ export function ChooseRobotSlideout(
: DISABLED_LINK_CSS
}
onClick={() => resetRunTimeParameters?.()}
paddingBottom={SPACING.spacing10}
{...targetProps}
>
{t('restore_defaults')}
Expand Down

0 comments on commit ce6c79f

Please sign in to comment.