mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
fix(web): prevent mobile keyboard from covering chat input (#403)
This commit is contained in:
@@ -9,6 +9,7 @@ import { useServerUrl } from '@/hooks/useServerUrl'
|
||||
import { useSSE } from '@/hooks/useSSE'
|
||||
import { useSyncingState } from '@/hooks/useSyncingState'
|
||||
import { usePushNotifications } from '@/hooks/usePushNotifications'
|
||||
import { useViewportHeight } from '@/hooks/useViewportHeight'
|
||||
import { useVisibilityReporter } from '@/hooks/useVisibilityReporter'
|
||||
import { queryKeys } from '@/lib/query-keys'
|
||||
import { AppContextProvider } from '@/lib/app-context'
|
||||
@@ -58,6 +59,9 @@ function AppInner() {
|
||||
initializeTheme()
|
||||
}, [])
|
||||
|
||||
// Track visual viewport height for mobile keyboard avoidance (see useViewportHeight.ts)
|
||||
useViewportHeight()
|
||||
|
||||
useEffect(() => {
|
||||
const preventDefault = (event: Event) => {
|
||||
event.preventDefault()
|
||||
|
||||
Reference in New Issue
Block a user