From e953812ff26564545e523ee81c1746a3950e6cbd Mon Sep 17 00:00:00 2001 From: Anton Tranelis Date: Mon, 12 Jan 2026 16:11:26 +0100 Subject: [PATCH] fixes for on --- lib/src/Components/Auth/LoginPage.tsx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/lib/src/Components/Auth/LoginPage.tsx b/lib/src/Components/Auth/LoginPage.tsx index b1c8fbb1..5eed4c13 100644 --- a/lib/src/Components/Auth/LoginPage.tsx +++ b/lib/src/Components/Auth/LoginPage.tsx @@ -1,5 +1,5 @@ /* eslint-disable @typescript-eslint/prefer-nullish-coalescing */ -import { useCallback, useEffect, useState } from 'react' +import React, { useCallback, useEffect, useState } from 'react' import { Link, useNavigate } from 'react-router-dom' import { toast } from 'react-toastify' @@ -101,6 +101,9 @@ export function LoginPage({ inviteApi, showRequestPassword }: Props) { onChange={(e) => { setEmail(e.target.value) }} + onFocus={(e: React.FocusEvent) => { + setTimeout(() => e.target.scrollIntoView({ behavior: 'smooth', block: 'center' }), 300) + }} className='tw:input tw:input-bordered tw:w-full tw:max-w-xs' /> { setPassword(e.target.value) }} + onFocus={(e: React.FocusEvent) => { + setTimeout(() => e.target.scrollIntoView({ behavior: 'smooth', block: 'center' }), 300) + }} className='tw:input tw:input-bordered tw:w-full tw:max-w-xs' />
@@ -150,8 +156,7 @@ export function LoginPage({ inviteApi, showRequestPassword }: Props) { > - The map requires an additional password. If you don't have it yet, you can - request one. + Please use your existing Ocean Nomads Community email address to request or reset your password.