Skip to content

Commit

Permalink
fix: ensured we use justify between for form body
Browse files Browse the repository at this point in the history
  • Loading branch information
tobi-bams committed Oct 8, 2024
1 parent 8e565ee commit 9789907
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/components/SettingsModal/SettingsView/General/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const General: FC<Props> = ({ initialValues, onClose }) => {
return (
<FormProvider {...form}>
<StyledForm id="add-node-form" onSubmit={handleSubmit}>
<>
<FormBody>
<Flex>
{swarmUiUrl && (
<SwarmLinkContainer>
Expand Down Expand Up @@ -89,7 +89,7 @@ export const General: FC<Props> = ({ initialValues, onClose }) => {
</Flex>
</Flex>

<Flex mt={190} py={error ? 0 : 24}>
<Flex py={error ? 0 : 24}>
<Button
color="secondary"
disabled={isSubmitting}
Expand All @@ -116,14 +116,15 @@ export const General: FC<Props> = ({ initialValues, onClose }) => {
</StyledError>
) : null}
</Flex>
</>
</FormBody>
</StyledForm>
</FormProvider>
)
}

const StyledForm = styled.form`
padding: 36px;
height: 100%;
`

const IconWrapper = styled.span`
Expand All @@ -143,6 +144,13 @@ const SwarmLinkContainer = styled(Flex)`
align-items: flex-end;
`

const FormBody = styled(Flex)`
display: flex;
direction: column;
justify-content: space-between;
height: 100%;
`

const Link = styled.a`
font-family: 'Barlow';
font-size: 16px;
Expand Down

0 comments on commit 9789907

Please sign in to comment.