Update headings and styles, and fix image layout in chatbox and editMessageDetail components

This commit is contained in:
2024-05-14 09:34:12 +08:00
parent 2a21985a17
commit d4da4c3e32
3 changed files with 19 additions and 21 deletions

View File

@@ -830,18 +830,15 @@ export default function ChatBOX(props: {
</span>
)}
<div className="flex justify-between">
{(chatStore.model.match("vision") ||
(chatStore.image_gen_api && chatStore.image_gen_key)) && (
<button
className="disabled:line-through disabled:bg-slate-500 rounded m-1 p-1 border-2 bg-cyan-400 hover:bg-cyan-600"
disabled={showGenerating || !chatStore.apiKey}
onClick={() => {
setShowAddImage(!showAddImage);
}}
>
Img
</button>
)}
<button
className="disabled:line-through disabled:bg-slate-500 rounded m-1 p-1 border-2 bg-cyan-400 hover:bg-cyan-600"
disabled={showGenerating || !chatStore.apiKey}
onClick={() => {
setShowAddImage(!showAddImage);
}}
>
Img
</button>
{showAddImage && (
<AddImage
chatStore={chatStore}