mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-27 17:35:07 +01:00
Fix setting title on new conversations, add the action menu
This commit is contained in:
parent
65d5e03f7f
commit
676ff5fa69
2 changed files with 2 additions and 1 deletions
|
@ -95,7 +95,7 @@ div.agentIndicator {
|
|||
}
|
||||
|
||||
div.chatTitleWrapper {
|
||||
grid-template-columns: auto 1fr;
|
||||
grid-template-columns: 1fr auto;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 768px) {
|
||||
|
|
|
@ -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]);
|
||||
|
|
Loading…
Reference in a new issue