Fix text input in text debug drawer
This commit is contained in:
@@ -1700,7 +1700,7 @@ export const DebugDrawer: React.FC<{
|
||||
{mode === 'text' ? (
|
||||
textSessionStarted ? (
|
||||
<div className="flex-1 flex flex-col min-h-0 animate-in fade-in">
|
||||
<div className="h-[52vh] min-h-[260px] max-h-[52vh]">
|
||||
<div className="h-[52vh] min-h-[260px] max-h-[52vh] flex min-h-0">
|
||||
<TranscriptionLog />
|
||||
</div>
|
||||
</div>
|
||||
@@ -1804,10 +1804,16 @@ export const DebugDrawer: React.FC<{
|
||||
</div>
|
||||
|
||||
<div className="shrink-0 space-y-2">
|
||||
<div className="flex items-center gap-2 min-w-0">
|
||||
<div className="w-full flex items-center gap-2 min-w-0">
|
||||
{mode === 'text' && textSessionStarted && (
|
||||
<Button variant="destructive" size="sm" className="h-9 font-bold shrink-0" onClick={closeWs}>
|
||||
<PhoneOff className="mr-2 h-4 w-4" /> 结束测试
|
||||
<Button
|
||||
variant="destructive"
|
||||
size="sm"
|
||||
className="h-9 px-3 font-bold shrink-0 whitespace-nowrap"
|
||||
onClick={closeWs}
|
||||
>
|
||||
<PhoneOff className="h-4 w-4" />
|
||||
<span className="ml-1.5">结束测试</span>
|
||||
</Button>
|
||||
)}
|
||||
<Input
|
||||
@@ -1818,7 +1824,14 @@ export const DebugDrawer: React.FC<{
|
||||
disabled={isLoading || (mode === 'text' ? !textSessionStarted : callStatus !== 'active')}
|
||||
className="flex-1 min-w-0"
|
||||
/>
|
||||
<Button size="icon" className="shrink-0" onClick={handleSend} disabled={isLoading || (mode === 'text' ? !textSessionStarted : callStatus !== 'active')}><Send className="h-4 w-4" /></Button>
|
||||
<Button
|
||||
size="icon"
|
||||
className="h-9 w-9 shrink-0"
|
||||
onClick={handleSend}
|
||||
disabled={isLoading || (mode === 'text' ? !textSessionStarted : callStatus !== 'active')}
|
||||
>
|
||||
<Send className="h-4 w-4" />
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user