Allow typing into chat input / attaching while streaming (#544)
Fixes https://github.com/dyad-sh/dyad/issues/518
This commit is contained in:
@@ -316,7 +316,6 @@ export function ChatInput({ chatId }: { chatId?: number }) {
|
|||||||
placeholder="Ask Dyad to build..."
|
placeholder="Ask Dyad to build..."
|
||||||
className="flex-1 p-2 focus:outline-none overflow-y-auto min-h-[40px] max-h-[200px]"
|
className="flex-1 p-2 focus:outline-none overflow-y-auto min-h-[40px] max-h-[200px]"
|
||||||
style={{ resize: "none" }}
|
style={{ resize: "none" }}
|
||||||
disabled={isStreaming}
|
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{isStreaming ? (
|
{isStreaming ? (
|
||||||
@@ -348,7 +347,6 @@ export function ChatInput({ chatId }: { chatId?: number }) {
|
|||||||
<Button
|
<Button
|
||||||
variant="ghost"
|
variant="ghost"
|
||||||
onClick={handleAttachmentClick}
|
onClick={handleAttachmentClick}
|
||||||
disabled={isStreaming}
|
|
||||||
title="Attach files"
|
title="Attach files"
|
||||||
size="sm"
|
size="sm"
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user