Merge remote-tracking branch 'github/dev' into dev

This commit is contained in:
2024-12-25 18:04:28 +08:00
4 changed files with 504 additions and 430 deletions

View File

@@ -803,8 +803,9 @@ export default function ChatBOX(props: {
<Button
variant="ghost"
size="icon"
onClick={() => setShowAddImage(!showAddImage)}
disabled={showGenerating || !chatStore.apiKey}
type="button"
onClick={() => setShowAddImage(true)}
disabled={showGenerating}
>
<ImageIcon className="size-4" />
<span className="sr-only">Add Image</span>
@@ -837,15 +838,14 @@ export default function ChatBOX(props: {
</div>
</form>
{showAddImage && (
<AddImage
chatStore={chatStore}
setChatStore={setChatStore}
setShowAddImage={setShowAddImage}
images={images}
setImages={setImages}
/>
)}
<AddImage
chatStore={chatStore}
setChatStore={setChatStore}
setShowAddImage={setShowAddImage}
images={images}
showAddImage={showAddImage}
setImages={setImages}
/>
</div>
</div>
</>