mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 21:04:23 +01:00
Fix mobile input UI issues
- Fix down arrow disappearing at bottom and model visibility - Only hide secondary buttons on mobile during active streaming, not when scroll button shows - Fix stop button to only show during actual session processing (busy/retry states) - Integrate session status with streaming state for better stop button control
This commit is contained in:
1 parent
9608d1ce19
commit
42149c4759
1 file changed
+5
-2
@@ -8,6 +8,7 @@ import { useModelSelection } from '@/hooks/useModelSelection'
|
||||
|
||||
import { useUserBash } from '@/stores/userBashStore'
|
||||
import { useMobile } from '@/hooks/useMobile'
|
||||
import { useSessionStatusForSession } from '@/stores/sessionStatusStore'
|
||||
import { ChevronDown } from 'lucide-react'
|
||||
|
||||
import { CommandSuggestions } from '@/components/command/CommandSuggestions'
|
||||
@@ -451,7 +452,9 @@ export function PromptInput({
|
||||
const { model: selectedModel, modelString } = useModelSelection(opcodeUrl, directory)
|
||||
const currentModel = modelString || ''
|
||||
const isMobile = useMobile()
|
||||
const hideSecondaryButtons = isMobile && (hasActiveStream || showScrollButton)
|
||||
const sessionStatus = useSessionStatusForSession(sessionID)
|
||||
const showStopButton = hasActiveStream && (sessionStatus.type === 'busy' || sessionStatus.type === 'retry')
|
||||
const hideSecondaryButtons = isMobile && hasActiveStream
|
||||
|
||||
useEffect(() => {
|
||||
const loadModelName = async () => {
|
||||
@@ -566,7 +569,7 @@ export function PromptInput({
|
||||
<ChevronDown className="w-5 h-5" />
|
||||
</button>
|
||||
)}
|
||||
{hasActiveStream && (
|
||||
{showStopButton && (
|
||||
<button
|
||||
onClick={handleStop}
|
||||
disabled={disabled}
|
||||
|
||||
Reference in new issue
Block a user