Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions lib/src/Components/Auth/LoginPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@ export function LoginPage({ inviteApi, showRequestPassword }: Props) {
onChange={(e) => {
setEmail(e.target.value)
}}
onFocus={(e) => {
setTimeout(() => {
e.target.scrollIntoView({ behavior: 'smooth', block: 'center' })
}, 300)
}}
className='tw:input tw:input-bordered tw:w-full tw:max-w-xs'
/>
<input
Expand All @@ -109,6 +114,11 @@ export function LoginPage({ inviteApi, showRequestPassword }: Props) {
onChange={(e) => {
setPassword(e.target.value)
}}
onFocus={(e) => {
setTimeout(() => {
e.target.scrollIntoView({ behavior: 'smooth', block: 'center' })
}, 300)
}}
className='tw:input tw:input-bordered tw:w-full tw:max-w-xs'
/>
<div className='tw:text-right tw:text-primary'>
Expand Down Expand Up @@ -150,8 +160,9 @@ export function LoginPage({ inviteApi, showRequestPassword }: Props) {
></path>
</svg>
<span>
The map requires an additional password. If you don&apos;t have it yet, you can
request one.
Please use your existing{' '}
<Link to='https://community.oceannomads.co/'>Ocean Nomads Community</Link> email
address to request or reset your password.
</span>
</div>
<Link to='/reset-password' className='tw:w-full'>
Expand Down