Skip to content

Commit

Permalink
fix(app): modify slideout restore value link layout (#15059)
Browse files Browse the repository at this point in the history
* fix(app): modify slideout restore value link layout
  • Loading branch information
koji authored May 2, 2024
1 parent 657d259 commit 1ed0740
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 1ed0740

Please sign in to comment.