Skip to content

Commit

Permalink
Set layer height only on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
buberdds committed Sep 8, 2023
1 parent a261928 commit e9c8a1a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -37,7 +37,7 @@ export const AddContact = ({ setLayerVisibility }: AddContactProps) => {
<Box
flex="grow"
justify="center"
height={{ min: layerOverlayMinHeight }}
height={{ min: isMobile ? 'auto' : layerOverlayMinHeight }}

Check warning on line 40 in src/app/components/Toolbar/Features/Contacts/AddContact.tsx

View check run for this annotation

Codecov / codecov/patch

src/app/components/Toolbar/Features/Contacts/AddContact.tsx#L40

Added line #L40 was not covered by tests
pad={{ vertical: 'medium' }}
>
<ContactAccountForm setLayerVisibility={setLayerVisibility} submitHandler={submitHandler} />
Expand Down
Expand Up @@ -54,7 +54,7 @@ export const ContactAccount = ({ contact }: ContactAccountProps) => {
<Box
flex="grow"
justify="center"
height={{ min: layerOverlayMinHeight }}
height={{ min: isMobile ? 'auto' : layerOverlayMinHeight }}

Check warning on line 57 in src/app/components/Toolbar/Features/Contacts/ContactAccount.tsx

View check run for this annotation

Codecov / codecov/patch

src/app/components/Toolbar/Features/Contacts/ContactAccount.tsx#L57

Added line #L57 was not covered by tests
pad={{ vertical: 'medium' }}
>
<ContactAccountForm
Expand Down

0 comments on commit e9c8a1a

Please sign in to comment.