diff --git a/frontend/src/components/message/PromptInput.tsx b/frontend/src/components/message/PromptInput.tsx index 08e83a6e..1ec8a4ff 100644 --- a/frontend/src/components/message/PromptInput.tsx +++ b/frontend/src/components/message/PromptInput.tsx @@ -4,7 +4,7 @@ import { useSettings } from '@/hooks/useSettings' import { useCommands } from '@/hooks/useCommands' import { useCommandHandler } from '@/hooks/useCommandHandler' import { useFileSearch } from '@/hooks/useFileSearch' -import { useMobile } from '@/hooks/useMobile' + import { CommandSuggestions } from '@/components/command/CommandSuggestions' import { FileSuggestions } from './FileSuggestions' import { detectMentionTrigger, parsePromptToParts, getFilename } from '@/lib/promptParser' @@ -52,7 +52,7 @@ export function PromptInput({ const [mentionRange, setMentionRange] = useState<{ start: number, end: number } | null>(null) const [selectedFileIndex, setSelectedFileIndex] = useState(0) const [selectedCommandIndex, setSelectedCommandIndex] = useState(0) - const isMobile = useMobile() + const textareaRef = useRef(null) const sendPrompt = useSendPrompt(opcodeUrl, directory) const sendShell = useSendShell(opcodeUrl, directory) @@ -415,170 +415,88 @@ export function PromptInput({ return ( -
- {isMobile ? ( - <> -
-