Skip to content

Commit cf6c67c

Browse files
committed
chat: three send buttons and they are all labeled differently; make them same
1 parent d71b726 commit cf6c67c

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

src/packages/frontend/chat/chatroom.tsx

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -523,14 +523,16 @@ export const ChatRoom: React.FC<Props> = ({ project_id, path }) => {
523523
margin: "0 0 5px 0",
524524
}}
525525
/>
526-
<Button
527-
onClick={on_send_button_click}
528-
disabled={input.trim() === "" || is_uploading}
529-
type="primary"
530-
style={{ height: "47.5px" }}
531-
>
532-
<Icon name="paper-plane" /> Send
533-
</Button>
526+
<Tooltip title={"Send message (shift+enter)"}>
527+
<Button
528+
onClick={on_send_button_click}
529+
disabled={input.trim() === "" || is_uploading}
530+
type="primary"
531+
style={{ height: "47.5px" }}
532+
>
533+
<Icon name="paper-plane" /> Send
534+
</Button>
535+
</Tooltip>
534536
<div style={{ height: "5px" }} />
535537
<Button
536538
onClick={() => actions.set_is_preview(true)}

src/packages/frontend/chat/message.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ export default function Message(props: Readonly<Props>) {
675675
Cancel
676676
</Button>
677677
<Button onClick={sendReply} type="primary">
678-
Send Reply
678+
<Icon name="paper-plane" /> Send
679679
</Button>
680680
<LLMCostEstimationChat
681681
llm_cost={llm_cost_reply}

src/packages/frontend/chat/side-chat.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ export default function SideChat({ project_id, path, style }: Props) {
159159
type="primary"
160160
>
161161
<Icon name="paper-plane" />
162-
Send Message (shift+enter)
162+
Send
163163
</Button>
164164
</Tooltip>
165165
{/*

0 commit comments

Comments
 (0)