Skip to content

Commit

Permalink
feat: update login header size on tablet
Browse files Browse the repository at this point in the history
  • Loading branch information
karrui committed Dec 12, 2023
1 parent f4548dd commit 4ddbac7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
10 changes: 7 additions & 3 deletions src/features/sign-in/components/Emailnput.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import { FormControl, FormLabel, Input, Stack } from '@chakra-ui/react'
import { Button, FormErrorMessage } from '@opengovsg/design-system-react'
import { FormControl, Input, Stack } from '@chakra-ui/react'
import {
Button,
FormErrorMessage,
FormLabel,
} from '@opengovsg/design-system-react'
import { useRouter } from 'next/router'
import { useEffect } from 'react'
import { useZodForm } from '~/lib/form'
Expand Down Expand Up @@ -48,7 +52,7 @@ export const EmailInput: React.FC<EmailInputProps> = ({ onSuccess }) => {
isInvalid={!!errors.email}
isReadOnly={loginMutation.isLoading}
>
<FormLabel requiredIndicator={<></>}>
<FormLabel>
Log in with a .gov.sg or whitelisted email address
</FormLabel>
<Input
Expand Down
4 changes: 2 additions & 2 deletions src/features/sign-in/components/GridLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ export const NonMobileSidebarGridArea: FC<PropsWithChildren> = ({
<GridItem
display={{ base: 'none', md: 'flex' }}
gridColumn={{ md: '1 / 13', lg: '1 / 7' }}
h={{ md: '20rem', lg: 'auto' }}
py="2rem"
h={{ md: '9.5rem', lg: 'auto' }}
py="1rem"
flexDir="column"
alignItems="center"
justifyContent="center"
Expand Down
2 changes: 1 addition & 1 deletion src/pages/sign-in/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const SignIn: NextPageWithLayout = () => {
<RestrictedGovtMasthead />
<BaseGridLayout flex={1}>
<NonMobileSidebarGridArea>
<LoginImageSvgr maxW="100%" aria-hidden />
<LoginImageSvgr aria-hidden />
</NonMobileSidebarGridArea>
<LoginGridArea>
<SignInContextProvider>
Expand Down

0 comments on commit 4ddbac7

Please sign in to comment.