Skip to content

Commit 5244293

Browse files
ricardoduplosdanielfdsilva
authored andcommitted
Tweak Edit view layout
1 parent 4dbe3e5 commit 5244293

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

packages/client/src/pages/CollectionForm/EditForm.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export function EditForm(props: {
6464
<Flex
6565
as='form'
6666
direction='column'
67-
gap={4}
67+
gap={8}
6868
// @ts-expect-error Can't detect the as=form and throws error
6969
onSubmit={handleSubmit}
7070
>
@@ -93,10 +93,12 @@ export function EditForm(props: {
9393
</Flex>
9494
}
9595
/>
96-
<Flex alignItems='center' justifyContent='space-between' p={4}>
97-
<Heading size='md'>{initialData ? 'Edit' : 'New'}</Heading>
96+
<Flex alignItems='center' justifyContent='space-between' px={8}>
97+
<Heading size='md' as='h2'>
98+
{initialData ? 'Edit' : 'New'}
99+
</Heading>
98100

99-
<ButtonGroup isAttached variant='outline' size='sm'>
101+
<ButtonGroup isAttached variant='outline' size='md'>
100102
<Button
101103
aria-label='Edit Form'
102104
leftIcon={<CollecticonForm />}
@@ -127,7 +129,7 @@ export function EditForm(props: {
127129
<PluginBox key={pl.name} plugin={pl}>
128130
{({ field }) => (
129131
<Box
130-
p='16'
132+
p='8'
131133
borderRadius='lg'
132134
bg='base.50a'
133135
display='flex'

0 commit comments

Comments
 (0)