From 6c88f23b5f083b550bf3822fe5c8b40155c44f86 Mon Sep 17 00:00:00 2001 From: Chris Scott Date: Thu, 27 Nov 2025 11:24:47 -0500 Subject: [PATCH] Fix iOS keyboard background and add PWA standalone detection --- frontend/index.html | 2 +- .../src/components/message/PromptInput.tsx | 9 +++++--- frontend/src/hooks/useStandalone.ts | 22 +++++++++++++++++++ frontend/src/index.css | 12 ++++++++++ 4 files changed, 41 insertions(+), 4 deletions(-) create mode 100644 frontend/src/hooks/useStandalone.ts diff --git a/frontend/index.html b/frontend/index.html index 606e64f0..3f7e6447 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -4,7 +4,7 @@ - + diff --git a/frontend/src/components/message/PromptInput.tsx b/frontend/src/components/message/PromptInput.tsx index 1ec8a4ff..a014a2af 100644 --- a/frontend/src/components/message/PromptInput.tsx +++ b/frontend/src/components/message/PromptInput.tsx @@ -4,6 +4,7 @@ import { useSettings } from '@/hooks/useSettings' import { useCommands } from '@/hooks/useCommands' import { useCommandHandler } from '@/hooks/useCommandHandler' import { useFileSearch } from '@/hooks/useFileSearch' +import { useStandalone } from '@/hooks/useStandalone' import { CommandSuggestions } from '@/components/command/CommandSuggestions' import { FileSuggestions } from './FileSuggestions' @@ -76,6 +77,8 @@ export function PromptInput({ showFileSuggestions, directory ) + + const isStandalone = useStandalone() const handleSubmit = () => { if (!prompt.trim() || disabled) return @@ -415,7 +418,7 @@ export function PromptInput({ return ( -
+