Skip to content

Commit

Permalink
add padding to edit buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
koji committed Sep 19, 2024
1 parent 2e2fb07 commit 888c86e
Showing 1 changed file with 27 additions and 23 deletions.
50 changes: 27 additions & 23 deletions protocol-designer/src/pages/ProtocolOverview/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -346,18 +346,20 @@ export function ProtocolOverview(): JSX.Element {
<StyledText desktopStyle="headingSmallBold">
{t('protocol_metadata')}
</StyledText>
<Btn
textDecoration={TYPOGRAPHY.textDecorationUnderline}
onClick={() => {
setShowEditMetadataModal(true)
}}
css={BUTTON_LINK_STYLE}
data-testid="ProtocolOverview_MetadataEditButton"
>
<StyledText desktopStyle="bodyDefaultRegular">
{t('edit')}
</StyledText>
</Btn>
<Flex padding={SPACING.spacing4}>
<Btn
textDecoration={TYPOGRAPHY.textDecorationUnderline}
onClick={() => {
setShowEditMetadataModal(true)
}}
css={BUTTON_LINK_STYLE}
data-testid="ProtocolOverview_MetadataEditButton"
>
<StyledText desktopStyle="bodyDefaultRegular">
{t('edit')}
</StyledText>
</Btn>
</Flex>
</Flex>
<Flex flexDirection={DIRECTION_COLUMN} gridGap={SPACING.spacing4}>
{metaDataInfo.map(info => {
Expand Down Expand Up @@ -389,17 +391,19 @@ export function ProtocolOverview(): JSX.Element {
<StyledText desktopStyle="headingSmallBold">
{t('instruments')}
</StyledText>
<Btn
textDecoration={TYPOGRAPHY.textDecorationUnderline}
onClick={() => {
setShowEditInstrumentsModal(true)
}}
css={BUTTON_LINK_STYLE}
>
<StyledText desktopStyle="bodyDefaultRegular">
{t('edit')}
</StyledText>
</Btn>
<Flex padding={SPACING.spacing4}>
<Btn
textDecoration={TYPOGRAPHY.textDecorationUnderline}
onClick={() => {
setShowEditInstrumentsModal(true)
}}
css={BUTTON_LINK_STYLE}
>
<StyledText desktopStyle="bodyDefaultRegular">
{t('edit')}
</StyledText>
</Btn>
</Flex>
</Flex>
<Flex flexDirection={DIRECTION_COLUMN} gridGap={SPACING.spacing4}>
<ListItem type="noActive" key={`ProtocolOverview_robotType`}>
Expand Down

0 comments on commit 888c86e

Please sign in to comment.