From 676ff5fa697b6a2d2958a2c072e4e3e150eba90c Mon Sep 17 00:00:00 2001 From: sabaimran Date: Sat, 28 Sep 2024 23:14:11 -0700 Subject: [PATCH] Fix setting title on new conversations, add the action menu --- src/interface/web/app/chat/chat.module.css | 2 +- src/interface/web/app/components/chatHistory/chatHistory.tsx | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/interface/web/app/chat/chat.module.css b/src/interface/web/app/chat/chat.module.css index d0cc9e11..942087e6 100644 --- a/src/interface/web/app/chat/chat.module.css +++ b/src/interface/web/app/chat/chat.module.css @@ -95,7 +95,7 @@ div.agentIndicator { } div.chatTitleWrapper { - grid-template-columns: auto 1fr; + grid-template-columns: 1fr auto; } @media screen and (max-width: 768px) { diff --git a/src/interface/web/app/components/chatHistory/chatHistory.tsx b/src/interface/web/app/components/chatHistory/chatHistory.tsx index 46b0bc23..e42dc4ed 100644 --- a/src/interface/web/app/components/chatHistory/chatHistory.tsx +++ b/src/interface/web/app/components/chatHistory/chatHistory.tsx @@ -146,6 +146,7 @@ export default function ChatHistory(props: ChatHistoryProps) { const lastMessage = props.incomingMessages[props.incomingMessages.length - 1]; if (lastMessage && !lastMessage.completed) { setIncompleteIncomingMessageIndex(props.incomingMessages.length - 1); + props.setTitle(lastMessage.rawQuery); } } }, [props.incomingMessages]);